v2.0.2 Changelog #957
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check | |
on: | |
push: | |
branches: | |
- main | |
- feat/workflow | |
pull_request: | |
branches: | |
- main | |
jobs: | |
skip: | |
runs-on: ubuntu-latest | |
if: | | |
!contains(format('{0} {1} {2}', github.event.head_commit.message, github.event.pull_request.title, github.event.pull_request.body), 'skip ci') | |
steps: | |
- run: | | |
cat <<'MESSAGE' | |
github.event_name: ${{ toJson(github.event_name) }} | |
github.event: | |
${{ toJson(github.event) }} | |
MESSAGE | |
build: | |
needs: skip | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest] | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
lfs: true | |
- name: Cache Air SDK | |
id: cache-air-sdk | |
uses: actions/cache@v4 | |
with: | |
path: ${{ github.workspace }}\airsdk | |
key: ${{ runner.os }}-air-sdk | |
- name: Download Air Windows | |
if: matrix.os == 'windows-latest' && steps.cache-air-sdk.outputs.cache-hit != 'true' | |
run: | | |
$ProgressPreference = 'SilentlyContinue'; | |
(irm -Uri "http://airdownload.adobe.com/air/win/download/32.0/AIRSDK_Compiler.zip" -ContentType "application/octet-stream" -OutFile "air-sdk.zip") | |
- name: extract-7z-action | |
if: matrix.os == 'windows-latest' && steps.cache-air-sdk.outputs.cache-hit != 'true' | |
uses: DuckSoft/[email protected] | |
with: | |
# archive path to extract | |
pathSource: air-sdk.zip | |
# path to place the extract | |
pathTarget: ${{ github.workspace }}\airsdk | |
- name: Fix Air SDK Target | |
uses: cschleiden/replace-tokens@v1 | |
with: | |
files: '["./airsdk/frameworks/flex-config.xml"]' | |
tokenPrefix: '{' | |
tokenSuffix: '}' | |
env: | |
targetPlayerMinorVersion: 0 | |
targetPlayerMajorVersion: 32 | |
- name: Install Dependencies | |
run: npm install asconfigc | |
- name: Build Embedded Fonts Library (Windows) | |
if: matrix.os == 'windows-latest' | |
shell: cmd | |
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project ${{ github.workspace }}/fonts/asconfig.embed-fonts.json --verbose | |
- name: Build the Game (Windows Debug) | |
if: matrix.os == 'windows-latest' | |
shell: cmd | |
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.json --debug=true --verbose | |
- name: Build the Game (Windows Release) | |
if: matrix.os == 'windows-latest' | |
shell: cmd | |
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.release.json --debug=false --verbose |