|
1 | 1 | name: Check
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - branches: |
6 |
| - - main |
7 |
| - - feat/workflow |
8 |
| - pull_request: |
9 |
| - branches: |
10 |
| - - main |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + - feat/workflow |
| 8 | + pull_request: |
| 9 | + branches: |
| 10 | + - main |
11 | 11 |
|
12 | 12 | jobs:
|
13 |
| - skip: |
14 |
| - runs-on: ubuntu-latest |
15 |
| - if: | |
16 |
| - !contains(format('{0} {1} {2}', github.event.head_commit.message, github.event.pull_request.title, github.event.pull_request.body), 'skip ci') |
17 |
| - steps: |
18 |
| - - run: | |
19 |
| - cat <<'MESSAGE' |
20 |
| - github.event_name: ${{ toJson(github.event_name) }} |
21 |
| - github.event: |
22 |
| - ${{ toJson(github.event) }} |
23 |
| - MESSAGE |
24 |
| - build: |
25 |
| - needs: skip |
26 |
| - runs-on: ${{ matrix.os }} |
27 |
| - strategy: |
28 |
| - matrix: |
29 |
| - os: [windows-latest] |
| 13 | + skip: |
| 14 | + runs-on: ubuntu-latest |
| 15 | + if: | |
| 16 | + !contains(format('{0} {1} {2}', github.event.head_commit.message, github.event.pull_request.title, github.event.pull_request.body), 'skip ci') |
| 17 | + steps: |
| 18 | + - run: | |
| 19 | + cat <<'MESSAGE' |
| 20 | + github.event_name: ${{ toJson(github.event_name) }} |
| 21 | + github.event: |
| 22 | + ${{ toJson(github.event) }} |
| 23 | + MESSAGE |
| 24 | + build: |
| 25 | + needs: skip |
| 26 | + runs-on: ${{ matrix.os }} |
| 27 | + strategy: |
| 28 | + matrix: |
| 29 | + os: [windows-latest] |
30 | 30 |
|
31 |
| - steps: |
32 |
| - - name: Checkout |
33 |
| - |
34 |
| - with: |
35 |
| - lfs: true |
| 31 | + steps: |
| 32 | + ########################################################################################## |
| 33 | + # Checkout |
| 34 | + - name: Checkout |
| 35 | + |
| 36 | + with: |
| 37 | + lfs: true |
36 | 38 |
|
37 |
| - - name: Cache Air SDK |
38 |
| - id: cache-air-sdk |
39 |
| - uses: actions/cache@v4 |
40 |
| - with: |
41 |
| - path: ${{ github.workspace }}\airsdk |
42 |
| - key: ${{ runner.os }}-air-sdk |
| 39 | + ########################################################################################## |
| 40 | + # Setup SDK |
| 41 | + - name: Checkout Build Tools |
| 42 | + |
| 43 | + with: |
| 44 | + repository: flashflashrevolution/rCubed-build-tools |
| 45 | + path: "tools" |
| 46 | + lfs: true |
43 | 47 |
|
44 |
| - - name: Download Air Windows |
45 |
| - if: matrix.os == 'windows-latest' && steps.cache-air-sdk.outputs.cache-hit != 'true' |
46 |
| - run: | |
47 |
| - $ProgressPreference = 'SilentlyContinue'; |
48 |
| - (irm -Uri "http://airdownload.adobe.com/air/win/download/32.0/AIRSDK_Compiler.zip" -ContentType "application/octet-stream" -OutFile "air-sdk.zip") |
| 48 | + - name: Extract Air SDK [32.0] |
| 49 | + if: matrix.os == 'windows-latest' |
| 50 | + run: 7z.exe x -tzip ${{ github.workspace }}\tools\SDK-Lite.zip -o${{ github.workspace }}\airsdk |
49 | 51 |
|
50 |
| - - name: extract-7z-action |
51 |
| - if: matrix.os == 'windows-latest' && steps.cache-air-sdk.outputs.cache-hit != 'true' |
52 |
| - |
53 |
| - with: |
54 |
| - # archive path to extract |
55 |
| - pathSource: air-sdk.zip |
56 |
| - # path to place the extract |
57 |
| - pathTarget: ${{ github.workspace }}\airsdk |
| 52 | + - name: Install Dependencies (asconfigc) |
| 53 | + run: npm install asconfigc |
58 | 54 |
|
59 |
| - - name: Fix Air SDK Target |
60 |
| - uses: cschleiden/replace-tokens@v1 |
61 |
| - with: |
62 |
| - files: '["./airsdk/frameworks/flex-config.xml"]' |
63 |
| - tokenPrefix: '{' |
64 |
| - tokenSuffix: '}' |
65 |
| - env: |
66 |
| - targetPlayerMinorVersion: 0 |
67 |
| - targetPlayerMajorVersion: 32 |
| 55 | + ########################################################################################## |
| 56 | + # Build SWFs |
| 57 | + - name: Build Embedded Fonts Library [Windows] |
| 58 | + if: matrix.os == 'windows-latest' |
| 59 | + shell: cmd |
| 60 | + run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project ${{ github.workspace }}/fonts/asconfig.embed-fonts.json --verbose |
68 | 61 |
|
69 |
| - - name: Install Dependencies |
70 |
| - run: npm install asconfigc |
| 62 | + - name: Build the Game [Windows Debug] |
| 63 | + if: matrix.os == 'windows-latest' |
| 64 | + shell: cmd |
| 65 | + run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.json --debug=true --verbose |
71 | 66 |
|
72 |
| - - name: Build Embedded Fonts Library (Windows) |
73 |
| - if: matrix.os == 'windows-latest' |
74 |
| - shell: cmd |
75 |
| - run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project ${{ github.workspace }}/fonts/asconfig.embed-fonts.json --verbose |
76 |
| - |
77 |
| - - name: Build the Game (Windows Debug) |
78 |
| - if: matrix.os == 'windows-latest' |
79 |
| - shell: cmd |
80 |
| - run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.json --debug=true --verbose |
81 |
| - |
82 |
| - - name: Build the Game (Windows Release) |
83 |
| - if: matrix.os == 'windows-latest' |
84 |
| - shell: cmd |
85 |
| - run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.release.json --debug=false --verbose |
| 67 | + - name: Build the Game [Windows Release] |
| 68 | + if: matrix.os == 'windows-latest' |
| 69 | + shell: cmd |
| 70 | + run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.release.json --debug=false --verbose |
0 commit comments