Skip to content

SUB - Build on Windows #5

SUB - Build on Windows

SUB - Build on Windows #5

Workflow file for this run

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