-
-
Notifications
You must be signed in to change notification settings - Fork 13
86 lines (70 loc) · 2.27 KB
/
continuous-integration-workflow.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: libogc2 build
on: [push, pull_request]
jobs:
build:
name: Build libogc2
runs-on: ubuntu-latest
container: devkitpro/devkitppc:latest
steps:
- name: Install packages
run: |
sudo dkp-pacman-key --recv-keys C8A2759C315CFBC3429CC2E422B803BA8AA3D7CE --keyserver keyserver.ubuntu.com
sudo dkp-pacman-key --lsign-key C8A2759C315CFBC3429CC2E422B803BA8AA3D7CE
sudo sed -i '/^\[dkp-libs\]$/,$d' /opt/devkitpro/pacman/etc/pacman.conf
sudo echo -e '[extremscorner-devkitpro]\nServer = https://packages.extremscorner.org/devkitpro/linux/$arch' >> /opt/devkitpro/pacman/etc/pacman.conf
sudo dkp-pacman -Sy
sudo dkp-pacman -S --noconfirm --ask 4 gamecube-tools-git ppc-libmad
- name: Checkout libogc2
uses: actions/checkout@main
with:
path: libogc2
- name: Checkout libfat
uses: actions/checkout@main
with:
repository: extremscorner/libfat
path: libfat
- name: Checkout libntfs
uses: actions/checkout@main
with:
repository: extremscorner/libntfs
path: libntfs
- name: Build libogc2
run: make install
working-directory: libogc2
- name: Build libfat
run: make ogc-install
working-directory: libfat
- name: Build libntfs
run: make install
working-directory: libntfs
- name: Upload artifacts
uses: actions/upload-artifact@main
with:
name: libogc2
path: /opt/devkitpro/libogc2
- name: Checkout gamecube-examples
uses: actions/checkout@main
with:
repository: extremscorner/gamecube-examples
path: gamecube-examples
- name: Checkout wii-examples
uses: actions/checkout@main
with:
repository: extremscorner/wii-examples
path: wii-examples
- name: Build gamecube-examples
run: make
working-directory: gamecube-examples
- name: Build wii-examples
run: make
working-directory: wii-examples
- name: Upload gamecube-examples
uses: actions/upload-artifact@main
with:
name: gamecube-examples
path: gamecube-examples/bin
- name: Upload wii-examples
uses: actions/upload-artifact@main
with:
name: wii-examples
path: wii-examples/bin