2020-04-25 13:59:47 +00:00
|
|
|
name: "Bulidability and Sanity"
|
2020-04-25 10:50:35 +00:00
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
2020-04-25 14:03:45 +00:00
|
|
|
sanity:
|
2020-04-25 10:50:35 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-04-25 15:04:27 +00:00
|
|
|
os: [macos-latest, ubuntu-latest, ubuntu-16.04]
|
2020-04-25 10:50:35 +00:00
|
|
|
cc: [gcc, clang]
|
|
|
|
include:
|
|
|
|
- os: macos-latest
|
|
|
|
cc: clang
|
|
|
|
extra_target: cocoa
|
2020-04-25 11:04:51 +00:00
|
|
|
exclude:
|
|
|
|
- os: macos-latest
|
|
|
|
cc: gcc
|
2020-04-25 10:50:35 +00:00
|
|
|
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: |
|
2020-04-25 15:09:04 +00:00
|
|
|
${{ matrix.cc }} -v; make -j sdl tester libretro ${{ matrix.extra_target }} CONF=release CC=${{ matrix.cc }}
|
2020-04-25 13:59:47 +00:00
|
|
|
- name: Sanity tests
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
./.github/actions/sanity_tests.sh
|
2020-04-25 10:50:35 +00:00
|
|
|
- name: Upload binaries
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: sameboy-canary-${{ matrix.os }}-${{ matrix.cc }}
|
|
|
|
path: build/bin
|