mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
CI: enable cmake builds in the pipelines
This commit is contained in:
parent
8d80268478
commit
2e263e2a25
1 changed files with 36 additions and 0 deletions
36
.github/workflows/build.yml
vendored
36
.github/workflows/build.yml
vendored
|
@ -47,3 +47,39 @@ jobs:
|
|||
with:
|
||||
name: macOS
|
||||
path: build/*.zip
|
||||
|
||||
build-cmake:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-18.04
|
||||
- windows-2019
|
||||
- macos-10.15
|
||||
|
||||
steps:
|
||||
- name: "Checkout"
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: "Install Dependencies (Linux)"
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install libsdl2-dev
|
||||
|
||||
- name: "Install Dependencies (OSX)"
|
||||
if: ${{ runner.os == 'macOS' }}
|
||||
run: |
|
||||
brew install sdl2
|
||||
|
||||
- name: "Install Dependencies (Windows)"
|
||||
if: ${{ runner.os == 'Windows' }}
|
||||
run: choco install zip
|
||||
|
||||
- name: "Compile"
|
||||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install
|
||||
cmake --build .
|
||||
cmake --install .
|
||||
|
|
Loading…
Reference in a new issue