-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (41 loc) · 1.1 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
name: Build nesDS
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
container: devkitpro/devkitarm:20241104
name: Build with Docker using devkitARM
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup environment
run: git config --global safe.directory '*'
- name: Build & Package nesDS
id: build
run: |
make
chmod +x make_cia
./make_cia --srl="nesDS.nds" --id_0=$(git rev-parse --short=7 HEAD) --tikID=$(git rev-parse --short=16 HEAD)
mkdir nesDS/
cp nesDS.nds nesDS/
cp nesDS.cia nesDS/
- name: Publish build to GH Actions
uses: actions/upload-artifact@v4
with:
path: nesDS
name: build
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
nesDS/nesDS.nds
nesDS/nesDS.cia