Skip to content

Commit

Permalink
Basic flow for macOS
Browse files Browse the repository at this point in the history
(References: #42)
  • Loading branch information
Aszusz committed Mar 13, 2024
1 parent 0a1899f commit b3e2df1
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: SUB - Build on macOS

on:
workflow_dispatch:
inputs:
env:
description: "An Environment"
required: true
type: choice
options:
- development
- production
version:
description: "A Version"
required: true
type: string

workflow_call:
inputs:
env:
description: "An Environment"
required: true
type: string
version:
description: "A Version"
required: true
type: string

jobs:
build:
runs-on: "macos-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: Build with Ant
run: >
ant
-buildfile MoonshineSDKInstaller/build/build.xml all
-Dapp.version=${{ inputs.version }}
-Dbuild.is.signed=false
-Dbuild.is.development=${{ inputs.env != 'production' }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: MoonshineSDKInstaller
path: MoonshineSDKInstaller/build/bin/MoonshineSDKInstaller-${{ inputs.version }}.pkg

0 comments on commit b3e2df1

Please sign in to comment.