-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e196942
commit aafe839
Showing
1 changed file
with
23 additions
and
35 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 |
---|---|---|
|
@@ -26,45 +26,35 @@ on: | |
|
||
jobs: | ||
|
||
test-ubuntu: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-13, macos-latest] | ||
shell: [bash] | ||
include: | ||
- os: windows-latest | ||
shell: msys2 {0} | ||
|
||
name: Test ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
defaults: | ||
run: | ||
shell: ${{ matrix.shell }} | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Install dependencies | ||
- name: Install dependencies (apt) | ||
if: ${{ startsWith(matrix.os, 'ubuntu') }} | ||
run: | | ||
sudo apt-get update -y -qq | ||
sudo apt-get install coreutils build-essential libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Build DEBUG | ||
run: make native CONF=DEBUG -j2 | ||
- name: Run tests | ||
run: make test CONF=DEBUG | ||
|
||
test-macos: | ||
|
||
runs-on: macos-13 | ||
|
||
steps: | ||
- name: Install dependencies | ||
- name: Install dependencies (brew) | ||
if: ${{ startsWith(matrix.os, 'macos') }} | ||
run: | | ||
brew install coreutils SDL2 sdl2_ttf sdl2_image [email protected] | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Build DEBUG | ||
run: make native CONF=DEBUG -j2 | ||
- name: Run tests | ||
run: make test CONF=DEBUG | ||
|
||
test-win64: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: msys2/setup-msys2@v2 | ||
- name: Install dependencies (msys2) | ||
if: ${{ startsWith(matrix.os, 'windows') }} | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
release: false | ||
update: true | ||
|
@@ -83,8 +73,6 @@ jobs: | |
with: | ||
submodules: recursive | ||
- name: Build DEBUG | ||
shell: msys2 {0} | ||
run: make native CONF=DEBUG -j2 | ||
run: make native CONF=DEBUG -j4 | ||
- name: Run tests | ||
shell: msys2 {0} | ||
run: make test CONF=DEBUG |