-
Notifications
You must be signed in to change notification settings - Fork 9
98 lines (94 loc) · 3.02 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Build
on:
push:
branches:
- main
paths-ignore:
- '.github/**'
- '!.github/workflows/**'
- 'README.md'
pull_request:
paths-ignore:
- '.github/**'
- '!.github/workflows/**'
- 'README.md'
workflow_dispatch:
jobs:
BuildISO:
name: Build ISO
runs-on: ubuntu-latest
steps:
- name: Clone tree
uses: actions/checkout@v3
with:
submodules: recursive
path: nxdk_pgraph_tests
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
cmake \
llvm \
lld \
libsdl2-dev \
libsdl2-image-dev \
ninja-build
pip3 install nv2a-vsh
- name: Prewarm nxdk
working-directory: nxdk_pgraph_tests
run: bash ${GITHUB_WORKSPACE}/nxdk_pgraph_tests/prewarm-nxdk.sh
- name: Compile
run: |
cd nxdk_pgraph_tests
export NXDK_DIR="${GITHUB_WORKSPACE}/nxdk_pgraph_tests/third_party/nxdk"
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE="${NXDK_DIR}/share/toolchain-nxdk.cmake" \
-DENABLE_PROGRESS_LOG=ON \
-DDUMP_CONFIG_FILE=ON \
-DRUNTIME_CONFIG_PATH="e:/nxdk_pgraph_tests/pgraph_tests.cnf"
cmake --build build -- -j$(grep -c processor /proc/cpuinfo)
- name: Create release
if: github.ref == 'refs/heads/main'
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: false
title: "xiso containing pgraph tests"
files: |
nxdk_pgraph_tests/build/xiso/nxdk_pgraph_tests_xiso/nxdk_pgraph_tests_xiso.iso
BuildMacOS:
name: Build macOS
runs-on: macOS-latest
steps:
- name: Clone tree
uses: actions/checkout@v3
with:
submodules: recursive
path: nxdk_pgraph_tests
- name: Install dependencies
run: |
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_INSTALL_CLEANUP=1
brew install \
cmake \
coreutils \
llvm@19 \
lld
- name: Prewarm nxdk
working-directory: nxdk_pgraph_tests
run: |
export PATH="$(brew --prefix llvm@19)/bin:$PATH"
bash ${GITHUB_WORKSPACE}/nxdk_pgraph_tests/prewarm-nxdk.sh
- name: Compile
run: |
cd nxdk_pgraph_tests
export NXDK_DIR="${GITHUB_WORKSPACE}/nxdk_pgraph_tests/third_party/nxdk"
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE="${NXDK_DIR}/share/toolchain-nxdk.cmake" \
-DENABLE_PROGRESS_LOG=ON \
-DDUMP_CONFIG_FILE=ON \
-DRUNTIME_CONFIG_PATH="e:/nxdk_pgraph_tests/pgraph_tests.cnf"
cmake --build build -- -j$(grep -c processor /proc/cpuinfo)