need newer emscripten #26
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: Build Native Apps | |
on: [push, pull_request] | |
jobs: | |
ubuntu-native: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: sudo apt install -y libsdl2-dev libx11-xcb-dev | |
- name: Make build directory | |
working-directory: ${{ github.workspace }} | |
run: mkdir cmake-build | |
- name: Configure | |
working-directory: ${{ github.workspace }}/cmake-build | |
run: cmake .. | |
- name: Build | |
working-directory: ${{ github.workspace }}/cmake-build | |
run: make -j `nproc` | |
windows-native: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: vcpkg install sdl2:x64-windows | |
- name: Make build directory | |
working-directory: ${{ github.workspace }} | |
run: mkdir cmake-build | |
- name: Configure | |
working-directory: ${{ github.workspace }}/cmake-build | |
run: > | |
cmake -A x64 ${env:GITHUB_WORKSPACE} | |
-G "Visual Studio 17 2022" | |
-DCMAKE_TOOLCHAIN_FILE="${env:VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" | |
- name: Build | |
working-directory: ${{ github.workspace }}/cmake-build | |
run: cmake --build . --config release | |
macos-native: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: brew install sdl2 | |
- name: Make build directory | |
working-directory: ${{ github.workspace }} | |
run: mkdir cmake-build | |
- name: Configure | |
working-directory: ${{ github.workspace }}/cmake-build | |
run: cmake .. | |
- name: Build | |
working-directory: ${{ github.workspace }}/cmake-build | |
run: make -j 4 |