Update GitHub Actions to CMake. #9
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 ezquake | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout qwprot | |
uses: actions/checkout@v4 | |
- name: Checkout ezquake | |
uses: actions/checkout@master | |
with: | |
repository: QW-Group/ezquake-source | |
path: ezquake | |
submodules: recursive | |
- name: Update qwprot in ezquake | |
run: | | |
cp src/* ./ezquake/src/qwprot/src | |
- name: Install dependencies | |
run: | | |
shasum ezquake/src/qwprot/src/* | |
sudo apt-get update -qq | |
sudo apt-get install -qq --no-install-recommends cmake libsdl2-dev libjansson-dev libexpat1-dev libcurl4-openssl-dev libpng-dev libjpeg-dev libspeex-dev libspeexdsp-dev libfreetype6-dev libsndfile1-dev libpcre2-dev libminizip-dev | |
- name: Check qwprot checksum | |
run: shasum ezquake/src/qwprot/src/* | |
- name: Run CMake | |
uses: lukka/run-cmake@v10 | |
with: | |
cmakeListsTxtPath: '${{ github.workspace }}/ezquake/CMakeLists.txt' | |
configurePreset: dynamic | |
buildPreset: dynamic-debug | |
- name: Check qwprot checksum | |
run: shasum ezquake/src/qwprot/src/* |