forked from ShadowMario/FNF-PsychEngine
-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (48 loc) · 1.68 KB
/
build-test.yaml
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
name: Build Test
on:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
compile: [windows]
build: [release, 32bit]
include:
- compile: windows
os: windows-latest
folder: windows
name: ${{ matrix.compile }}-${{ matrix.build }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Haxe
uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.5
- name: Setup Haxelib
run: |
haxelib setup .haxelib/
haxelib install hxcpp --quiet
haxelib install format --quiet
haxelib install hxp --quiet
- name: Install haxelibs
run: haxe -cp update -D analyzer-optimize -main Update --interp
- name: Compile (32-bit)
if: ${{ matrix.build == '32bit' }}
run: haxelib run openfl build ${{ matrix.compile }} -${{ matrix.build }} -D officialBuild -D HXCPP_M32 -32
- name: Compile (64-bit)
if: ${{ matrix.build != '32bit' }}
run: haxelib run openfl build ${{ matrix.compile }} -${{ matrix.build }} -D officialBuild -64
- name: Uploading artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.compile }}-${{ matrix.build }}
path: export/${{ matrix.build }}/${{ matrix.folder }}/bin
if-no-files-found: error
- name: Uploading artifact (executable windows)
uses: actions/upload-artifact@v3
with:
name: executableOnly-${{ matrix.compile }}-${{ matrix.build }}
path: export/${{ matrix.build }}/${{ matrix.folder }}/bin/PsikeEngine.exe