mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Add GitHub Actions for regression testing
This commit is contained in:
14
.github/actions/install_deps.sh
vendored
Executable file
14
.github/actions/install_deps.sh
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
case `echo $1 | cut -d '-' -f 1` in
|
||||
ubuntu)
|
||||
sudo apt-get -qq update
|
||||
sudo apt-get install -yq bison libpng-dev pkg-config
|
||||
;;
|
||||
macos)
|
||||
brew install libpng pkg-config md5sha1sum
|
||||
;;
|
||||
*)
|
||||
echo "WARNING: Cannot install deps for OS '$1'"
|
||||
;;
|
||||
esac
|
||||
|
||||
yacc --version
|
||||
26
.github/workflows/testing.yml
vendored
Normal file
26
.github/workflows/testing.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: "Regression testing"
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
testing:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-16.04, ubuntu-18.04, macos-10.15]
|
||||
cc: [gcc, clang]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install deps
|
||||
shell: bash
|
||||
run: |
|
||||
./.github/actions/install_deps.sh ${{ matrix.os }}
|
||||
- name: Build
|
||||
run: |
|
||||
make -j Q= CC=${{ matrix.cc }}
|
||||
- name: Install
|
||||
run: |
|
||||
sudo make install -j Q=
|
||||
- name: Test
|
||||
shell: bash
|
||||
run: |
|
||||
test/run-tests.sh
|
||||
Reference in New Issue
Block a user