-
Notifications
You must be signed in to change notification settings - Fork 39
43 lines (39 loc) · 1.5 KB
/
main.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
name: Build main
on:
push:
branches:
- "**"
permissions:
contents: read
pages: write
id-token: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: DeterminateSystems/nix-installer-action@main
- name: Create result directory
run: mkdir ${{ runner.temp }}/result
# -- Windows online-server
- name: Build Server Release Mingw32 GCC
run: nix build -L --keep-going '.?submodules=1#online-server.release.mingw32.gcc' -o ${{ runner.temp }}/result/online-server.release.mingw32.gcc
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: online-server-windows
path: |
${{ runner.temp }}/result/online-server.release.mingw32.gcc/
# -- Linux online-server
- name: Build Server Release Linux GCC
run: nix build -L --no-link --keep-going '.?submodules=1#online-server.release.native.gcc'
- name: Build Server Release Aarch64 GCC
run: nix build -L --no-link --keep-going '.?submodules=1#online-server.release.aarch64.gcc'
# -- PC Port
- name: Build Decomp Debug Mingw32 GCC
run: nix build -L --no-link --keep-going '.?submodules=1#pc-decomp.debug.mingw32.gcc' 2>&1 | grep -A3 'error:'
- name: Build Decomp Debug Linux32 GCC
run: nix build -L --no-link --keep-going '.?submodules=1#pc-decomp.debug.native32.gcc' 2>&1 | grep -A3 'error:'