generated from Joalor64GH/HaxeFlixel-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (47 loc) · 1.28 KB
/
main.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
name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
buildWindows:
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.3.3
- name: Restore Cache
uses: actions/cache@main
with:
key: cache-build-windows
path: |
.haxelib/
export/debug/windows/haxe/
export/debug/windows/obj/
restore-keys: |
cache-build-windows
- name: Install Libraries
run: |
haxe -cp ./compileData -D analyzer-optimize -main Libraries --interp
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Compile
run: haxelib run lime build windows -debug
- name: Publish Artifact
uses: actions/upload-artifact@main
with:
name: windowsBuild
path: export/debug/windows/bin
- name: Uploading new cache
uses: actions/cache@main
with:
key: cache-build-windows
path: |
.haxelib/
export/debug/windows/haxe/
export/debug/windows/obj/
restore-keys: |
cache-build-windows