Implement Healing Salve #7
This file contains hidden or 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: Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| name: ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| pkg-config \ | |
| libsodium-dev \ | |
| libgl1-mesa-dev \ | |
| libx11-dev libxrandr-dev libxcursor-dev libxi-dev \ | |
| libudev-dev libfreetype-dev | |
| - name: Install dependencies (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: brew install pkg-config libsodium | |
| - name: Install dependencies (Windows, MSYS2/MinGW64) | |
| if: matrix.os == 'windows-latest' | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| msystem: MINGW64 | |
| update: true | |
| install: >- | |
| mingw-w64-x86_64-gcc | |
| mingw-w64-x86_64-cmake | |
| mingw-w64-x86_64-ninja | |
| mingw-w64-x86_64-pkgconf | |
| mingw-w64-x86_64-libsodium | |
| git | |
| - name: Configure (Unix) | |
| if: matrix.os != 'windows-latest' | |
| run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release | |
| - name: Build (Unix) | |
| if: matrix.os != 'windows-latest' | |
| run: cmake --build build | |
| - name: Configure (Windows) | |
| if: matrix.os == 'windows-latest' | |
| shell: msys2 {0} | |
| run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release | |
| - name: Build (Windows) | |
| if: matrix.os == 'windows-latest' | |
| shell: msys2 {0} | |
| run: cmake --build build | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: secure_card-${{ matrix.os }} | |
| path: | | |
| build/secure_card* | |
| build/resources | |
| build/start_game.* | |
| if-no-files-found: warn |