Skip to content

Commit

Permalink
Merge pull request #135 from alexey-lysiuk/windows-linux-ci
Browse files Browse the repository at this point in the history
Continuous integration for Windows and Linux
  • Loading branch information
Shpoike authored Dec 16, 2023
2 parents d56ab8f + ec7f807 commit dae5b66
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 8 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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: |
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/build-mingw.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit dae5b66

Please sign in to comment.