Skip to content

Commit b156324

Browse files
committed
MultiPlatform
1 parent 10cbfc2 commit b156324

1 file changed

Lines changed: 78 additions & 22 deletions

File tree

.github/workflows/haxeBuild.yml

Lines changed: 78 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,8 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
build:
12-
name: ${{matrix.os-name}} Build
13-
runs-on: ${{matrix.os}}
14-
strategy:
15-
fail-fast: false
16-
matrix:
17-
include:
18-
- os: ubuntu-latest
19-
os-name: Linux
20-
target: x86_64-unknown-linux-gnu
21-
- os: windows-latest
22-
os-name: Windows
23-
target: x86_64-pc-windows-msvc
24-
- os: macos-latest
25-
os-name: macOS-Intel
26-
target: x86_64-apple-darwin
27-
- os: macos-latest
28-
os-name: macOS-Arm64
29-
target: aarch64-apple-darwin
11+
buildWindows:
12+
runs-on: windows-latest
3013

3114
steps:
3215
- uses: actions/checkout@v4
@@ -36,6 +19,7 @@ jobs:
3619

3720
- name: Install Libraries
3821
run: |
22+
haxelib setup C:/haxelib
3923
haxelib install lime
4024
haxelib install openfl
4125
haxelib --never install flixel
@@ -52,11 +36,83 @@ jobs:
5236
run: echo "${{github.run_id}}" > VERSION
5337

5438
- name: Compile
55-
run: haxelib run lime build ${{matrix.target}} --app-version="4.0.0-${{ github.run_id}}"
39+
run: haxelib run lime build windows --app-version="4.0.0-${{ github.run_id}}"
5640

5741
- name: Publish Artifact
5842
uses: actions/upload-artifact@v4
5943
with:
60-
name: Solar Submit ${{matrix.os-name}}
61-
path: export/${{matrix.target}}/
44+
name: windowsBuild
45+
path: export/windows/
46+
47+
buildLinux:
48+
runs-on: ubuntu-latest
49+
50+
steps:
51+
- uses: actions/checkout@v4
52+
- uses: krdlab/setup-haxe@v2
53+
with:
54+
haxe-version: 4.3.7
55+
56+
- name: Install Libraries
57+
run: |
58+
haxelib setup ~/haxelib
59+
haxelib install lime
60+
haxelib install openfl
61+
haxelib --never install flixel
62+
haxelib run lime setup flixel
63+
haxelib run lime setup
64+
haxelib install flixel-tools
65+
haxelib install flixel-ui
66+
haxelib install flixel-addons
67+
haxelib install haxeui-core
68+
haxelib install haxeui-flixel
69+
shell: cmd
70+
71+
- name: Create Version Tag
72+
run: echo "${{github.run_id}}" > VERSION
73+
74+
- name: Compile
75+
run: haxelib run lime build Project.xml linux --app-version="4.0.0-${{ github.run_id}}"
76+
77+
- name: Publish Artifact
78+
uses: actions/upload-artifact@v4
79+
with:
80+
name: linuxBuild
81+
path: export/linux/
82+
83+
buildMacIntel:
84+
runs-on: macos-latest
85+
86+
steps:
87+
- uses: actions/checkout@v4
88+
- uses: krdlab/setup-haxe@v2
89+
with:
90+
haxe-version: 4.3.7
91+
92+
- name: Install Libraries
93+
run: |
94+
haxelib setup ~/haxelib
95+
haxelib install lime
96+
haxelib install openfl
97+
haxelib --never install flixel
98+
haxelib run lime setup flixel
99+
haxelib run lime setup
100+
haxelib install flixel-tools
101+
haxelib install flixel-ui
102+
haxelib install flixel-addons
103+
haxelib install haxeui-core
104+
haxelib install haxeui-flixel
105+
shell: cmd
106+
107+
- name: Create Version Tag
108+
run: echo "${{github.run_id}}" > VERSION
109+
110+
- name: Compile
111+
run: haxelib run lime build mac --app-version="4.0.0-${{ github.run_id}}"
112+
113+
- name: Publish Artifact
114+
uses: actions/upload-artifact@v4
115+
with:
116+
name: macBuild
117+
path: export/macos/
62118

0 commit comments

Comments
 (0)