Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 58 additions & 73 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,85 +1,70 @@
name: Check

on:
push:
branches:
- main
- feat/workflow
pull_request:
branches:
- main
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]
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/checkout@v4.2.2
with:
lfs: true
steps:
##########################################################################################
# Checkout
- name: Checkout
uses: actions/checkout@v4.2.2
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
##########################################################################################
# Setup SDK
- name: Checkout Build Tools
uses: actions/checkout@v4.2.2
with:
repository: flashflashrevolution/rCubed-build-tools
path: "tools"
lfs: true

- 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 Air SDK [32.0]
if: matrix.os == 'windows-latest'
run: 7z.exe x -tzip ${{ github.workspace }}\tools\SDK-Lite.zip -o${{ github.workspace }}\airsdk

- name: extract-7z-action
if: matrix.os == 'windows-latest' && steps.cache-air-sdk.outputs.cache-hit != 'true'
uses: DuckSoft/extract-7z-action@v1.0
with:
# archive path to extract
pathSource: air-sdk.zip
# path to place the extract
pathTarget: ${{ github.workspace }}\airsdk
- name: Install Dependencies (asconfigc)
run: npm install asconfigc

- name: Fix Air SDK Target
uses: cschleiden/replace-tokens@v1
with:
files: '["./airsdk/frameworks/flex-config.xml"]'
tokenPrefix: '{'
tokenSuffix: '}'
env:
targetPlayerMinorVersion: 0
targetPlayerMajorVersion: 32
##########################################################################################
# Build SWFs
- 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: Install Dependencies
run: npm install asconfigc
- 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 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
- 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
12 changes: 6 additions & 6 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
os: [windows-latest]

steps:
##########################################################################################
Expand All @@ -32,11 +32,11 @@ jobs:
lfs: true

- name: Extract Air SDK [32.0]
if: matrix.os == 'windows-2019'
if: matrix.os == 'windows-latest'
run: 7z.exe x -tzip ${{ github.workspace }}\tools\SDK-Lite.zip -o${{ github.workspace }}\airsdk

- name: Extract Runtimes
if: matrix.os == 'windows-2019'
if: matrix.os == 'windows-latest'
run: 7z.exe x -tzip ${{ github.workspace }}\tools\Runtimes.zip -o${{ github.workspace }}\bundles

- name: Install Dependencies (asconfigc)
Expand Down Expand Up @@ -77,17 +77,17 @@ jobs:
##########################################################################################
# Build SWFs
- name: Build Embedded Fonts Library [Windows]
if: matrix.os == 'windows-2019'
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 (Normal) [Windows]
if: matrix.os == 'windows-2019'
if: matrix.os == 'windows-latest'
shell: cmd
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.release.json --verbose

- name: Build the Game (Hybrid) [Windows]
if: matrix.os == 'windows-2019'
if: matrix.os == 'windows-latest'
shell: cmd
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.hybrid.json --verbose

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
os: [windows-latest]

steps:
##########################################################################################
Expand All @@ -48,11 +48,11 @@ jobs:
lfs: true

- name: Extract Air SDK [32.0]
if: matrix.os == 'windows-2019'
if: matrix.os == 'windows-latest'
run: 7z.exe x -tzip ${{ github.workspace }}\tools\SDK-Lite.zip -o${{ github.workspace }}\airsdk

- name: Extract Runtimes
if: matrix.os == 'windows-2019'
if: matrix.os == 'windows-latest'
run: 7z.exe x -tzip ${{ github.workspace }}\tools\Runtimes.zip -o${{ github.workspace }}\bundles

- name: Install Dependencies (asconfigc)
Expand Down Expand Up @@ -99,17 +99,17 @@ jobs:
##########################################################################################
# Build SWFs
- name: Build Embedded Fonts Library [Windows]
if: matrix.os == 'windows-2019'
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 (Normal) [Windows]
if: matrix.os == 'windows-2019'
if: matrix.os == 'windows-latest'
shell: cmd
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.release.json --verbose

- name: Build the Game (Hybrid) [Windows]
if: matrix.os == 'windows-2019'
if: matrix.os == 'windows-latest'
shell: cmd
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.hybrid.json --verbose

Expand Down