-
Notifications
You must be signed in to change notification settings - Fork 107
57 lines (46 loc) · 1.26 KB
/
build.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
name: Build
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
container:
image: devkitpro/devkita64:latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup ccache
uses: hendrikmuhs/[email protected]
- name: Build
id: build
run: make -j8 PREFIX="ccache aarch64-none-elf-"
continue-on-error: true
- name: Install libnx master & Retry build
id: retry
if: ${{ steps.build.outcome == 'failure' }}
run: |
pushd /tmp
git clone https://github.com/switchbrew/libnx
cd libnx
make -j8 PREFIX="ccache aarch64-none-elf-"
make install
popd
make -j8 PREFIX="ccache aarch64-none-elf-"
- name: Upload built files
uses: actions/upload-artifact@v3
with:
name: sdcard
path: out/sd
- name: Upload elf file
uses: actions/upload-artifact@v3
with:
name: ldn_mitm.elf
path: ldn_mitm/ldn_mitm.elf
- name: Upload elf file
uses: actions/upload-artifact@v3
with:
name: ldn_mitm.elf
path: overlay/overlay.elf