forked from ericwa/Quakespasm
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from alexey-lysiuk/windows-linux-ci
Continuous integration for Windows and Linux
- Loading branch information
Showing
3 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
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
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 |
13 changes: 5 additions & 8 deletions
13
.github/workflows/auto-build.yml → .github/workflows/build-macos.yml
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
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
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 |