-
Notifications
You must be signed in to change notification settings - Fork 2
106 lines (94 loc) · 3.02 KB
/
build-windows.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: SUB - Build on Windows
on:
workflow_dispatch:
inputs:
env:
description: "An Environment"
required: true
type: choice
options:
- development
- production
version:
description: "A Version"
required: true
type: string
caching:
description: "Use caching"
required: true
type: boolean
default: false
workflow_call:
inputs:
env:
description: "An Environment"
required: true
type: string
version:
description: "A Version"
required: true
type: string
caching:
description: "Use caching"
required: true
type: boolean
default: false
jobs:
build:
runs-on: "windows-latest"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.2.5
- uses: joshtynjala/setup-apache-flex-action@v2
with:
flex-version: "4.16.1"
air-version: "33.1"
accept-air-license: true
- name: Install haxe dependencies
run: |
haxelib install feathersui --quiet
haxelib install actuate --quiet
haxelib install openfl --quiet
haxelib install lime --quiet
- name: Build swc
working-directory: MoonshineSDKInstallerGUICore
run: |
haxelib run openfl build project.xml flash -debug
- name: Build swc
working-directory: MoonshineSDKInstallerGUICore
run: |
haxelib run openfl build project.xml flash -debug
- name: Build swf
working-directory: MoonshineSDKInstaller/src
run: >
& "${env:FLEX_HOME}/bin/mxmlc" "../src/MoonshineSDKInstaller.mxml" `
-output msdki.swf `
-swf-version=41 `
-configname=air `
-optimize=true `
-debug=false `
-actionscript-file-encoding=UTF-8 `
-incremental=false `
-keep-generated-actionscript=false `
-allow-source-path-overlap=true `
-source-path="../src" `
-source-path+="../../flex-utilities/flex-installer/common/src" `
-source-path+="../../flex-utilities/flex-installer/ant_on_air/external" `
-source-path+="../../flex-utilities/flex-installer/ant_on_air/src" `
-source-path+="../../flex-utilities/flex-installer/ant_on_air/locale/en_US" `
-source-path+="../../ApacheFlexSDKInstallerLib/src" `
-source-path+="../../InstallerSharedCore/src" `
-compiler.library-path+="../../ApacheFlexSDKInstallerLib/libs/as3commons-zip-1.0.0-alpha.1.swc" `
-compiler.library-path+="../../ApacheFlexSDKInstallerLib/libs/as3httpclient.swc" `
-compiler.library-path+="../../MoonshineSDKInstallerGUICore/bin/flash/bin/MoonshineSDKInstallerGUICore.swc"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: msdki.swf
path: MoonshineSDKInstaller/src/msdki.swf