diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index aec88893..a1565f97 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 86e90485..7b5d6571 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -12,7 +12,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-2019] + os: [windows-latest] steps: ########################################################################################## @@ -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) @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 845e794f..4e73974f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-2019] + os: [windows-latest] steps: ########################################################################################## @@ -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) @@ -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