-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (40 loc) · 1.05 KB
/
build-switch-release.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
name: Switch build
on:
push:
branches: [ main ]
workflow_dispatch:
inputs:
nx:
description: build for nintendo switch
type: boolean
permissions:
contents: write
jobs:
build-nx:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
arch: [x86_64]
mode: [debug]
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, 'ci skip')"
container: devkitpro/devkita64
steps:
- name: Get current date as package key
id: cache_key
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get -y install gcc
- name: Build nso-icon-tool
run: ./proj_build_ci.sh --root
- uses: actions/upload-artifact@v4
with:
name: nso-icon-tool
path: build_switch/nso-icon-tool.nro