Skip to content

Commit 4f140c7

Browse files
authored
Create multi-platform.yml
1 parent 8fa39bd commit 4f140c7

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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: iOS
22+
os: macos-latest
23+
target: iOS
24+
25+
- name: Android32
26+
os: ubuntu-latest
27+
target: Android32
28+
29+
- name: Android64
30+
os: ubuntu-latest
31+
target: Android64
32+
33+
name: ${{ matrix.config.name }}
34+
runs-on: ${{ matrix.config.os }}
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Build the mod
40+
uses: geode-sdk/build-geode-mod@main
41+
with:
42+
combine: true
43+
target: ${{ matrix.config.target }}
44+
45+
package:
46+
name: Package builds
47+
runs-on: ubuntu-latest
48+
needs: ['build']
49+
50+
steps:
51+
- uses: geode-sdk/build-geode-mod/combine@main
52+
id: build
53+
54+
- uses: actions/upload-artifact@v4
55+
with:
56+
name: Build Output
57+
path: ${{ steps.build.outputs.build-output }}

0 commit comments

Comments
 (0)