Check Linux build in Github Actions

This commit is contained in:
Andrew Grigorev 2024-04-17 21:46:40 +03:00
parent 494d5889ad
commit 4eb96c6b35
2 changed files with 23 additions and 1 deletions

View File

@ -12,7 +12,10 @@ jobs:
fail-fast: false
matrix:
os: [{runner: windows-latest, preset: win}, {runner: macos-latest, preset: mac}]
os:
- {runner: windows-latest, preset: win}
- {runner: macos-latest, preset: mac}
- {runner: ubuntu-latest, preset: linux}
build_type: [Debug, Release]
runs-on: ${{ matrix.os.runner }}
@ -26,6 +29,17 @@ jobs:
# Install packages from Homebrew
brew bundle install
- name: Install Linux dependencies
if: ${{ matrix.os.preset == 'linux' }}
run: |
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install -y --no-install-recommends \
make cmake g++ libsdl1.2-dev libsdl-image1.2-dev \
libaudio-dev libaa1-dev libdirectfb-dev \
libncurses-dev \
libxext6:i386 # for ./scripts/hogutils/hogUtils-i686 binary
- name: Configure CMake
run: cmake --preset ${{matrix.os.preset}} -B ${{github.workspace}}/build

View File

@ -23,5 +23,13 @@
, "rhs": "Darwin"
}
}
, {
"name": "linux"
, "condition": {
"type": "equals"
, "lhs": "${hostSystemName}"
, "rhs": "Linux"
}
}
]
}