-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (94 loc) · 3.06 KB
/
build-native.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
99
100
101
102
name: Build for Native
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
jobs:
client:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install NPM Packages (Common)
run: npm install
working-directory: ./modules/common
- name: Install NPM Packages (Native)
run: npm install
working-directory: ./modules/native
- name: Build Client (NPM)
run: npm run build-multiplayer
working-directory: ./modules/native
- name: Build Client (Cargo)
run: cargo build --bin client --verbose
working-directory: ./modules/native/rust-wrapper
- name: Upload Output
uses: actions/upload-artifact@v4
with:
name: client
path: modules/web/dist
server:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [ 22.x ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install NPM Packages (Common)
run: npm install
working-directory: ./modules/common
- name: Install NPM Packages (Native)
run: npm install
working-directory: ./modules/native
- name: Build Server (NPM)
run: npm run build-server
working-directory: ./modules/native
- name: Build Server (Cargo)
run: cargo build --bin server --verbose
working-directory: ./modules/native/rust-wrapper
- name: Upload Output
uses: actions/upload-artifact@v4
with:
name: client
path: modules/web/dist
singleplayer:
runs-on: ubuntu-24.04
strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install NPM Packages (Common)
run: npm install
working-directory: ./modules/common
- name: Install NPM Packages (Native)
run: npm install
working-directory: ./modules/native
- name: Build Singleplayer (NPM)
run: npm run build
working-directory: ./modules/native
- name: Build Singleplayer (Cargo)
run: cargo build --bin singleplayer --verbose
working-directory: ./modules/native/rust-wrapper
- name: Upload Output
uses: actions/upload-artifact@v4
with:
name: singleplayer
path: modules/web/dist