-
Notifications
You must be signed in to change notification settings - Fork 13
62 lines (53 loc) · 1.64 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build:
runs-on: ubuntu-latest
container: ps2dev/ps2sdk-ports:latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
apk add build-base git
- name: Install ps2stuff
run: |
git clone https://github.com/ps2dev/ps2stuff.git
cd ps2stuff
make -j $(getconf _NPROCESSORS_ONLN) clean
make -j $(getconf _NPROCESSORS_ONLN) all
make -j $(getconf _NPROCESSORS_ONLN) install
- name: Compile project
run: |
make -j $(getconf _NPROCESSORS_ONLN) clean
make -j $(getconf _NPROCESSORS_ONLN) all
make -j $(getconf _NPROCESSORS_ONLN) install
- name: Compile GLUT
run: |
cd glut
make -j $(getconf _NPROCESSORS_ONLN) clean
make -j $(getconf _NPROCESSORS_ONLN) all
make -j $(getconf _NPROCESSORS_ONLN) install
- name: Compile examples
run: |
cd examples
cd box && make clean all && cd ..
cd logo && make clean all && cd ..
cd performance && make clean all && cd ..
cd tricked_out && make clean all && cd ..
cd nehe/lesson02 && make clean all && cd ../..
cd nehe/lesson03 && make clean all && cd ../..
cd nehe/lesson04 && make clean all && cd ../..
cd nehe/lesson05 && make clean all && cd ../..
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: examples
path: |
examples/**/*.elf
examples/**/*.gl
examples/**/*.rtx
examples/**/*.bin