-
Notifications
You must be signed in to change notification settings - Fork 6
82 lines (79 loc) · 2.11 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
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
name: Build nightly
on:
push:
branches: ["master"]
paths-ignore:
- 'README.md'
- archived
- default
- staging
- template
- tools
workflow_dispatch:
jobs:
devkitarm:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
name: Build with Docker using devkitARM
steps:
- uses: actions/checkout@v4
- name: Build all drivers
run: |
chmod +x build.sh
./build.sh
- uses: actions/upload-artifact@v4
with:
path: out
name: build_dka
blocksds:
runs-on: ubuntu-latest
container: skylyrac/blocksds:slim-latest
name: Build with Docker using BlocksDS
steps:
- uses: actions/checkout@v4
- name: Build all drivers
run: |
cd blocksds
chmod +x build.sh
./build.sh
- uses: actions/upload-artifact@v4
with:
path: blocksds/out
name: build_blocks
publish:
runs-on: ubuntu-latest
name: Publish artifacts
needs: [devkitarm, blocksds]
steps:
- name: Checkout artifact branch
uses: actions/checkout@v4
with:
path: artifacts
ref: builds
- name: Download devkitARM artifacts
uses: actions/download-artifact@v4
with:
name: build_dka
path: /tmp/build_dka
- name: Download BlocksDS artifacts
uses: actions/download-artifact@v4
with:
name: build_blocks
path: /tmp/build_blocks
- name: Commit artifacts
continue-on-error: true
run: |
rm -rf artifacts/*.dldi
cp -r /tmp/build_dka/*.dldi artifacts/
cp -r /tmp/build_blocks/*.dldi artifacts/
cd artifacts
git add .
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "Build: ${{ github.sha }}"
- name: Push changes
uses: ad-m/github-push-action@master
continue-on-error: true
with:
directory: artifacts
branch: builds