mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
Check Linux build in Github Actions
This commit is contained in:
parent
494d5889ad
commit
4eb96c6b35
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -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
|
||||
|
||||
|
@ -23,5 +23,13 @@
|
||||
, "rhs": "Darwin"
|
||||
}
|
||||
}
|
||||
, {
|
||||
"name": "linux"
|
||||
, "condition": {
|
||||
"type": "equals"
|
||||
, "lhs": "${hostSystemName}"
|
||||
, "rhs": "Linux"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user