-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (55 loc) · 1.43 KB
/
geode.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
name: Build Geode mod
on:
workflow_dispatch:
push:
branches:
- "main"
env:
CLI_VERSION: v2.4.4
SDK_VERSION: nightly
PREBUILT_PROTOBUF_VERSION: v21.12
jobs:
build:
strategy:
matrix:
config:
- name: Windows
os: windows-latest
- name: macOS
os: macos-latest
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/checkout@v3
with:
submodules: recursive
ref: 'prebuilt-protobuf'
path: "prebuilt_protobuf"
- uses: actions/checkout@v3
with:
submodules: recursive
repository: 'protocolbuffers/protobuf'
ref: ${{ env.PREBUILT_PROTOBUF_VERSION }}
path: "prebuilt_protobuf/src"
- name: Build the mod
uses: geode-sdk/build-geode-mod@main
with:
configure-args: '-DUSE_PREBUILT_PROTOBUF=1'
build-args: '-j 16'
cli: ${{ env.CLI_VERSION }}
sdk: ${{ env.SDK_VERSION }}
combine: true
package:
name: Package builds
runs-on: ubuntu-latest
needs: ['build']
steps:
- uses: geode-sdk/build-geode-mod@combine
id: build
- uses: actions/upload-artifact@v3
with:
name: Build Output
path: ${{ steps.build.outputs.build-output }}