-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate all the different compilation flavours and generate artefact…
…s using release compilation
- Loading branch information
1 parent
50a93d3
commit 72cfd61
Showing
1 changed file
with
68 additions
and
0 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,68 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
repository_dispatch: | ||
types: [run_build] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: ps2dev/ps2dev:latest | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
apk add build-base git zip | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
git fetch --prune --unshallow | ||
- name: Compile -> make clean opl.elf | ||
run: | | ||
make clean opl.elf | ||
- name: Compile -> make IGS=1 clean opl.elf | ||
run: | | ||
make IGS=1 clean opl.elf | ||
- name: Compile -> make PADEMU=1 clean opl.elf | ||
run: | | ||
make PADEMU=1 clean opl.elf | ||
- name: Compile -> make IGS=1 PADEMU=1 clean opl.elf | ||
run: | | ||
make IGS=1 PADEMU=1 clean opl.elf | ||
- name: Compile -> make DEBUG=1 clean opl.elf | ||
run: | | ||
make DEBUG=1 clean opl.elf | ||
- name: Compile -> make DEBUG=1 IOPCORE_DEBUG=1 clean opl.elf | ||
run: | | ||
make DEBUG=1 IOPCORE_DEBUG=1 clean opl.elf | ||
- name: Compile -> make DEBUG=1 EESIO_DEBUG=1 clean opl.elf | ||
if: false # This step is disabled for now because EESIO_DEBUG is broken after newlib changes | ||
run: | | ||
make DEBUG=1 EESIO_DEBUG=1 clean opl.elf | ||
- name: Compile -> make DEBUG=1 INGAME_DEBUG=1 clean opl.elf | ||
run: | | ||
make DEBUG=1 INGAME_DEBUG=1 clean opl.elf | ||
- name: Compile -> make clean release | ||
run: | | ||
make clean release | ||
- name: Get short SHA | ||
id: slug | ||
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)" | ||
|
||
- name: Upload artifacts | ||
if: ${{ success() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: OPNPS2LD-${{ steps.slug.outputs.sha8 }} | ||
path: OPNPS2LD-*.ZIP |