forked from Pokes303/WUPDownloader
-
Notifications
You must be signed in to change notification settings - Fork 21
49 lines (47 loc) · 1.39 KB
/
pr.yaml
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: build PRs
on:
pull_request:
types: [ opened, reopened, synchronize ]
jobs:
clang-format:
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: clang-format
run: |
git submodule update --init --recursive
docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -e ./src/gtitles.c -e ./src/SDL_FontCache.c -e ./include/SDL_FontCache.h -r ./src ./include
build-binary:
name: build-binary
runs-on: ubuntu-24.04
needs: clang-format
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: build artifacts
run: |
docker build . -t builder
docker run --rm -v ${PWD}:/project builder python3 build.py
- name: Upload Aroma version
uses: actions/upload-artifact@v4
with:
name: NUSspli-Aroma-DEBUG
path: out/Aroma-DEBUG/*
if-no-files-found: error
- name: Upload Lite version
uses: actions/upload-artifact@v4
with:
name: NUSspli-Lite-DEBUG
path: out/Lite-DEBUG/*
if-no-files-found: error
- name: Upload Channel version
uses: actions/upload-artifact@v4
with:
name: NUSspli-Channel-DEBUG
path: out/Channel-DEBUG/*
if-no-files-found: error