-
Notifications
You must be signed in to change notification settings - Fork 152
45 lines (37 loc) · 1010 Bytes
/
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:
runs-on: ubuntu-latest
container: ghcr.io/pspdev/psptoolchain:latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
apk add build-base autoconf automake zlib-dev
- name: Compile PSPSDK
run: |
./bootstrap
./configure
make clean
make -j $(getconf _NPROCESSORS_ONLN)
make install
- name: Get short SHA
id: slug
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
- name: Compile Examples
run: |
cd src/samples && make -f Makefile.samples
- name: Compress Samples folder folder
run: |
tar -zcvf samples.tar.gz src/samples
- name: Upload Samples artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v3
with:
name: samples-${{ steps.slug.outputs.sha8 }}
path: samples.tar.gz