-
-
Notifications
You must be signed in to change notification settings - Fork 351
53 lines (42 loc) · 1.5 KB
/
main.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
name: Build Goldleaf
on: [push, pull_request]
jobs:
Goldleaf:
runs-on: ubuntu-latest
container: devkitpro/devkita64:latest
steps:
- uses: actions/checkout@master
with:
submodules: recursive
- name: Update packages
run: |
sudo -n apt-get update
sudo -n apt-get upgrade -y patch autoconf automake diffutils pkgconf fakeroot git file tar bzip2 zstd python3 python3-pip
python3 -m pip install requests
sudo -n dkp-pacman --noconfirm -U \
"https://wii.leseratte10.de/devkitPro/other-stuff/dkp-toolchain-vars-1.0.2-1-any.pkg.tar.xz"
- name: Silence all git safe directory warnings
run: git config --system --add safe.directory '*'
- name: Checkout latest libnx commit
run: |
git clone --recurse-submodules https://github.com/switchbrew/libnx.git
- name: Set workspace permissions
run: chmod 777 -R "$GITHUB_WORKSPACE"
- name: Build and install libnx
run: |
cd libnx
make install -j$(nproc)
- name: Build libusbhsfs dependencies
run: |
cd libusbhsfs
make BUILD_TYPE=GPL install -j$(nproc)
- name: Build Goldleaf
run: |
python3 arc/arc.py gen_db default+Goldleaf/include/base_Results.rc.hpp
python3 arc/arc.py gen_cpp rc GLEAF Goldleaf/include/base_Results.gen.hpp
make -j$(nproc)
- uses: actions/upload-artifact@master
with:
name: Goldleaf
path: Goldleaf/Goldleaf.nro
if-no-files-found: error