Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and simplify GitHub Actions #11

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .github/workflows/build-ezquake.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .github/workflows/build-mvdsv.yml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: compile check

on: [push, pull_request]

jobs:
ezquake:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout qwprot
uses: actions/checkout@v4
- name: Checkout ezquake
uses: actions/checkout@v4
with:
repository: QW-Group/ezquake-source
path: ezquake
submodules: recursive
- name: Update qwprot in ezquake
run: |
cp src/* ezquake/src/qwprot/src
shasum ezquake/src/qwprot/src/protocol.h > checksum
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq --no-install-recommends cmake ninja-build 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: Run CMake
uses: lukka/run-cmake@v10
with:
cmakeListsTxtPath: '${{ github.workspace }}/ezquake/CMakeLists.txt'
configurePreset: dynamic
buildPreset: dynamic-debug
- name: Verify that build didn't change protocol.h
run: shasum -c checksum

mvdsv:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout qwprot
uses: actions/checkout@v4
- name: Checkout mvdsv
uses: actions/checkout@v4
with:
repository: QW-Group/mvdsv
path: mvdsv
submodules: recursive
- name: Update qwprot in mvdsv
run: |
cp src/* mvdsv/src/qwprot/src
shasum mvdsv/src/qwprot/src/protocol.h > checksum
- name: Build mvdsv
run: ./build_cmake.sh linux-amd64
working-directory: mvdsv
- name: Verify that build didn't change protocol.h
run: shasum -c checksum
Loading