Skip to content

build on all branches #1

build on all branches

build on all branches #1

Workflow file for this run

name: Build Native Apps
on: [push]
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 `nproc`