forked from ps2dev/ps2sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.22 KB
/
compilation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build:
strategy:
matrix:
debug: [all, debug]
runs-on: ubuntu-latest
container: ps2dev/ps2toolchain:latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apk add build-base git bash
- name: Compile project ${{ matrix.debug }}
run: |
make clean ${{ matrix.debug }} install
ln -sf "$PS2SDK/ee/lib/libcglue.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libcglue.a"
ln -sf "$PS2SDK/ee/lib/libkernel.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libkernel.a"
ln -sf "$PS2SDK/ee/lib/libcdvd.a" "$PS2DEV/ee/mips64r5900el-ps2-elf/lib/libcdvd.a"
- name: Compile samples
if: ${{ success() }}
run: |
cp -rv $PS2SDK/samples ~/
make -C ~/samples
- 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: ps2sdk-samples-${{ matrix.debug }}-${{ steps.slug.outputs.sha8 }}
path: ~/samples