Skip to content

Commit 9c84ad0

Browse files
authored
Update github actions (#394)
1 parent 980f2d2 commit 9c84ad0

File tree

3 files changed

+70
-85
lines changed

3 files changed

+70
-85
lines changed

.github/workflows/check.yml

Lines changed: 58 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,70 @@
11
name: Check
22

33
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
1111

1212
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]
3030

31-
steps:
32-
- name: Checkout
33-
uses: actions/[email protected]
34-
with:
35-
lfs: true
31+
steps:
32+
##########################################################################################
33+
# Checkout
34+
- name: Checkout
35+
uses: actions/[email protected]
36+
with:
37+
lfs: true
3638

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+
uses: actions/[email protected]
43+
with:
44+
repository: flashflashrevolution/rCubed-build-tools
45+
path: "tools"
46+
lfs: true
4347

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
4951

50-
- name: extract-7z-action
51-
if: matrix.os == 'windows-latest' && steps.cache-air-sdk.outputs.cache-hit != 'true'
52-
uses: DuckSoft/[email protected]
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
5854

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
6861

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
7166

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

.github/workflows/manual.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
matrix:
15-
os: [windows-2019]
15+
os: [windows-latest]
1616

1717
steps:
1818
##########################################################################################
@@ -32,11 +32,11 @@ jobs:
3232
lfs: true
3333

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

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

4242
- name: Install Dependencies (asconfigc)
@@ -77,17 +77,17 @@ jobs:
7777
##########################################################################################
7878
# Build SWFs
7979
- name: Build Embedded Fonts Library [Windows]
80-
if: matrix.os == 'windows-2019'
80+
if: matrix.os == 'windows-latest'
8181
shell: cmd
8282
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project ${{ github.workspace }}/fonts/asconfig.embed-fonts.json --verbose
8383

8484
- name: Build the Game (Normal) [Windows]
85-
if: matrix.os == 'windows-2019'
85+
if: matrix.os == 'windows-latest'
8686
shell: cmd
8787
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.release.json --verbose
8888

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

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ${{ matrix.os }}
2929
strategy:
3030
matrix:
31-
os: [windows-2019]
31+
os: [windows-latest]
3232

3333
steps:
3434
##########################################################################################
@@ -48,11 +48,11 @@ jobs:
4848
lfs: true
4949

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

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

5858
- name: Install Dependencies (asconfigc)
@@ -99,17 +99,17 @@ jobs:
9999
##########################################################################################
100100
# Build SWFs
101101
- name: Build Embedded Fonts Library [Windows]
102-
if: matrix.os == 'windows-2019'
102+
if: matrix.os == 'windows-latest'
103103
shell: cmd
104104
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project ${{ github.workspace }}/fonts/asconfig.embed-fonts.json --verbose
105105

106106
- name: Build the Game (Normal) [Windows]
107-
if: matrix.os == 'windows-2019'
107+
if: matrix.os == 'windows-latest'
108108
shell: cmd
109109
run: ${{ github.workspace }}\node_modules\.bin\asconfigc.cmd --sdk ${{ github.workspace }}\airsdk --project asconfig.release.json --verbose
110110

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

0 commit comments

Comments
 (0)