-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (39 loc) · 1.59 KB
/
switch-build.yml
File metadata and controls
52 lines (39 loc) · 1.59 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
name: Switch Build
on:
pull_request:
push:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
arch: [aarch64]
mode: [debug, release]
runs-on: ${{ matrix.os }}
if: ${{ !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ci linux') && !contains(github.event.head_commit.message, 'ci windows') && !contains(github.event.head_commit.message, 'ci macos') }}
container: devkitpro/devkita64
steps:
- name: Checkout code
uses: actions/checkout@v4
# Install system dependencies
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get -y install gcc
# Force xmake to a specific folder (for cache)
- name: Set xmake env
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV
- name: Setup xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
actions-cache-folder: .xmake-cache-W${{ steps.cache_key.outputs.key }}
- name: Update xmake repository
run: xmake repo --update --root && xmake repo -u --root && dkp-pacman -Rs --noconfirm switch-tinyxml2
- name: Configure xmake and install dependencies
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --toolchain=devkita64 -p cross --yes --root -vD
- name: Build Switchseerr
run: xmake --yes --root
- uses: actions/upload-artifact@v4
with:
name: Switchseerr-switch-${{ matrix.arch }}-${{ matrix.mode }}
path: build/cross/aarch64/${{ matrix.mode }}/Switchseerr.nro