Add continuous integration workflows for Linux and MinGW

Rename macOS workflow to match with others
This commit is contained in:
alexey.lysiuk 2023-12-04 10:59:59 +02:00
parent d56ab8f022
commit ec7f807ba1
3 changed files with 58 additions and 8 deletions

24
.github/workflows/build-linux.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Linux CI
on:
push
jobs:
build-linux:
name: Build Linux
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
compiler: ["clang", "gcc"]
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt update && sudo apt install libmad0-dev libopusfile-dev libsdl2-dev libvorbis-dev
- name: Build with ${{ matrix.compiler }}
run: |
export MAKEFLAGS=--jobs=3\ --keep-going
make --jobs=3 --keep-going --directory=Quake CC=${{ matrix.compiler }} USE_SDL2=1

View file

@ -1,28 +1,25 @@
name: Auto Build
name: macOS CI
on:
push
jobs:
build:
runs-on: ${{ matrix.os }}
name: Build macOS
runs-on: macos-12
strategy:
fail-fast: false
matrix:
os: [macos-12]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: macOS Build
if: runner.os == 'macOS'
run: |
cd MacOSX
./build-macos.sh
- name: Upload macOS artifact
uses: actions/upload-artifact@v2
if: runner.os == 'macOS'
uses: actions/upload-artifact@v3
with:
name: macos
path: |

29
.github/workflows/build-mingw.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: MinGW CI
on:
push
jobs:
build-linux:
name: Build MinGW
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
config:
- target: win32
package: i686-win32
- target: win64
package: x86-64
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt update && sudo apt install gcc-mingw-w64-${{ matrix.config.package }} libz-mingw-w64-dev
- name: Build with MinGW ${{ matrix.config.target }}
run: |
export MAKEFLAGS=--jobs=3\ --keep-going
cd Quake && ./build_cross_${{ matrix.config.target }}-sdl2.sh