mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 08:31:03 +00:00
Merge pull request #135 from alexey-lysiuk/windows-linux-ci
Continuous integration for Windows and Linux
This commit is contained in:
commit
dae5b66365
3 changed files with 58 additions and 8 deletions
24
.github/workflows/build-linux.yml
vendored
Normal file
24
.github/workflows/build-linux.yml
vendored
Normal 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
|
|
@ -1,28 +1,25 @@
|
||||||
name: Auto Build
|
name: macOS CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push
|
push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
name: Build macOS
|
||||||
|
runs-on: macos-12
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
|
||||||
os: [macos-12]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: macOS Build
|
- name: macOS Build
|
||||||
if: runner.os == 'macOS'
|
|
||||||
run: |
|
run: |
|
||||||
cd MacOSX
|
cd MacOSX
|
||||||
./build-macos.sh
|
./build-macos.sh
|
||||||
|
|
||||||
- name: Upload macOS artifact
|
- name: Upload macOS artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
if: runner.os == 'macOS'
|
|
||||||
with:
|
with:
|
||||||
name: macos
|
name: macos
|
||||||
path: |
|
path: |
|
29
.github/workflows/build-mingw.yml
vendored
Normal file
29
.github/workflows/build-mingw.yml
vendored
Normal 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
|
Loading…
Reference in a new issue