-
-
Notifications
You must be signed in to change notification settings - Fork 107
62 lines (55 loc) · 1.55 KB
/
main.yml
File metadata and controls
62 lines (55 loc) · 1.55 KB
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
name: Build binaries
on:
workflow_dispatch:
push:
branches:
- "**"
paths-ignore:
- '**.md'
- '.devcontainer/**'
- '.github/ISSUE_TEMPLATE/**'
- '.github/FUNDING.yml'
- '.github/**/*.md'
- '.vscode/**'
- 'HBC/**'
- 'Languages/**'
pull_request:
paths-ignore:
- '**.md'
- '.devcontainer/**'
- '.github/ISSUE_TEMPLATE/**'
- '.github/FUNDING.yml'
- '.github/**/*.md'
- '.vscode/**'
- 'HBC/**'
- 'Languages/**'
jobs:
build:
runs-on: ubuntu-latest
container: devkitpro/devkitppc:20250527
steps:
- uses: actions/checkout@v4
- name: Configure Git
run: git config --system --add safe.directory "$GITHUB_WORKSPACE"
- name: Compile USB Loader GX
run: make release -j2
- name: Package
if: ${{ vars.ALLOW_UPLOADS == 'true' }}
run: |
mkdir -p upload/apps/usbloader_gx
cp boot.dol upload/apps/usbloader_gx
cp HBC/icon.png upload/apps/usbloader_gx
cp HBC/meta.xml upload/apps/usbloader_gx
echo "sha=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV
- name: Upload binary
if: ${{ vars.ALLOW_UPLOADS == 'true' }}
uses: actions/upload-artifact@v4
with:
name: usbloadergx_${{ env.sha }}
path: upload
- name: Upload debug binary
if: ${{ vars.ALLOW_UPLOADS == 'true' }}
uses: actions/upload-artifact@v4
with:
name: usbloadergx_${{ env.sha }}_debug
path: boot.elf