-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (33 loc) · 885 Bytes
/
build.yml
File metadata and controls
39 lines (33 loc) · 885 Bytes
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
name: Xbox
on: [push, pull_request]
jobs:
Xbox:
runs-on: ubuntu-latest
steps:
- name: Install and Setup Dependencies
run: |
sudo apt-get update -y && sudo apt-get install -y flex bison clang lld llvm
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile
run: |
eval $(lib/nxdk/bin/activate -s)
cd lib/nxdk
make NXDK_ONLY=y
make tools
cd ../..
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=lib/nxdk/share/toolchain-nxdk.cmake
cmake --build .
# Only create artifact on a push to xbox
- if: github.event_name == 'push'
name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: XeniumTools
path: |
XeniumTools.iso
XeniumTools