-
Notifications
You must be signed in to change notification settings - Fork 21
48 lines (46 loc) · 1.15 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
name: Build
on:
push:
paths-ignore:
- '.github/*'
- '.github/*_TEMPLATE/**'
- '*.md'
pull_request:
paths-ignore:
- '.github/*'
- '.github/*_TEMPLATE/**'
- '*.md'
jobs:
ubuntu:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- name: Clone Tree
uses: actions/checkout@v2
with:
submodules: recursive
- name: Clone nxdk
uses: actions/checkout@v2
with:
repository: XboxDev/nxdk
path: nxdk
submodules: recursive
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y flex bison clang lld llvm clang-format
- name: Check for new format errors
run: |
find . | grep -E '.*\.(c|cpp|h|hpp)$' | grep -Ev '(3rdparty|nxdk)/' | xargs clang-format --dry-run -Werror
- name: Build
run: |
eval $(./nxdk/bin/activate -s)
make -j$(nproc)
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: NevolutionX
path: |
*.iso
bin
if-no-files-found: error