README: Complete client example #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🛠️ Builds | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.runner }} | |
name: ${{ matrix.name }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- identifier: linux-debug | |
name: Linux Debug | |
runner: ubuntu-20.04 | |
target: template_debug | |
platform: linux | |
arch: x86_64 | |
- identifier: linux-release | |
name: Linux Release | |
runner: ubuntu-20.04 | |
target: template_release | |
platform: linux | |
arch: x86_64 | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
- name: Set up SCons | |
shell: bash | |
run: | | |
python -c "import sys; print(sys.version)" | |
python -m pip install scons | |
scons --version | |
- name: Install libsystemd | |
shell: bash | |
run: | | |
sudo apt-get install libsystemd-dev | |
- name: Checkout project | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Compile extension | |
shell: sh | |
run: | | |
scons target='${{ matrix.target }}' platform='${{ matrix.platform }}' arch='${{ matrix.arch }}' -j2 | |
ls -l project/addons/*/bin/ | |
- name: Copy extra files to addon | |
shell: sh | |
run: | | |
for addon in ${{ github.workspace }}/project/addons/*/; do | |
cp --no-clobber '${{ github.workspace }}/README.md' '${{ github.workspace }}/LICENSE' "$addon" | |
done | |
- name: Upload artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.event.repository.name }} | |
path: | | |
${{ github.workspace }}/project/ |