Skip to content

Commit e754b8f

Browse files
authored
add multi-platform example as its own file
1 parent 8c06111 commit e754b8f

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

examples/multi-platform.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build Geode Mod
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "**"
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
config:
15+
- name: Windows
16+
os: windows-latest
17+
18+
- name: macOS
19+
os: macos-latest
20+
21+
- name: Android32
22+
os: ubuntu-latest
23+
target: Android32
24+
25+
- name: Android64
26+
os: ubuntu-latest
27+
target: Android64
28+
29+
name: ${{ matrix.config.name }}
30+
runs-on: ${{ matrix.config.os }}
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- name: Build the mod
36+
uses: geode-sdk/build-geode-mod@main
37+
with:
38+
combine: true
39+
target: ${{ matrix.config.target }}
40+
41+
package:
42+
name: Package builds
43+
runs-on: ubuntu-latest
44+
needs: ['build']
45+
46+
steps:
47+
- uses: geode-sdk/build-geode-mod/combine@main
48+
id: build
49+
50+
- uses: actions/upload-artifact@v3
51+
with:
52+
name: Build Output
53+
path: ${{ steps.build.outputs.build-output }}

0 commit comments

Comments
 (0)