Skip to content

Commit 66e4f76

Browse files
committed
Use 7z SDKs.
1 parent a62e413 commit 66e4f76

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/deploy.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ on:
1515

1616
env:
1717
# Common settings.
18-
CMAKE_VERSION: 3.24.x
18+
CMAKE_VERSION: 3.25.x
1919
# Common paths.
2020
ci_source_dir: ${{ github.workspace }}/source-code
2121
ci_build_script: ./source-code/Script/ci_build.sh
2222
ci_build_dir: ${{ github.workspace }}/cmake-build
2323
ci_native_sdk_dir: ${{ github.workspace }}/SDK-native
2424
ci_target_sdk_dir: ${{ github.workspace }}/SDK-target
2525

26+
defaults:
27+
run:
28+
shell: bash
29+
2630
jobs:
2731
CheckSkipCI:
2832
runs-on: ubuntu-latest
@@ -50,8 +54,8 @@ jobs:
5054

5155
env:
5256
ci_platform: web
53-
ci_native_sdk_name: rebelfork-sdk-Linux-clang-dll-x64-latest.zip
54-
ci_target_sdk_name: rebelfork-sdk-Web-lib-latest.zip
57+
ci_native_sdk_name: rebelfork-sdk-linux-clang-x64-dll-latest
58+
ci_target_sdk_name: rebelfork-sdk-web-emscripten-wasm-lib-latest
5559
ci_emsdk_version: latest
5660
ci_build_mode: ${{ matrix.ci_build_mode }}
5761
ci_publish: ${{ github.ref == 'refs/heads/master' && github.repository == 'rbfx/sample-project' && matrix.ci_build_mode == 'sdk'}}
@@ -83,28 +87,28 @@ jobs:
8387
with:
8488
repository: rbfx/rbfx
8589
tag: latest
86-
fileName: ${{ env.ci_native_sdk_name }}
90+
fileName: ${{ env.ci_native_sdk_name }}.7z
8791

8892
- name: Unzip native SDK
8993
run: |
90-
cd ${{ github.workspace }}
91-
unzip ${{ env.ci_native_sdk_name }}
92-
mv ./SDK ./SDK-native
94+
cd '${{ github.workspace }}'
95+
7z x '${{ env.ci_native_sdk_name }}.7z' '-o${{ github.workspace }}' -y
96+
mv './${{ env.ci_native_sdk_name }}' ./SDK-native
9397
9498
- name: Download target SDK
9599
if: ${{ matrix.ci_build_mode == 'sdk' }}
96100
uses: robinraju/release-downloader@v1.8
97101
with:
98102
repository: rbfx/rbfx
99103
tag: latest
100-
fileName: ${{ env.ci_target_sdk_name }}
104+
fileName: ${{ env.ci_target_sdk_name }}.7z
101105

102106
- name: Unzip target SDK
103107
if: ${{ matrix.ci_build_mode == 'sdk' }}
104108
run: |
105-
cd ${{ github.workspace }}
106-
unzip ${{ env.ci_target_sdk_name }}
107-
mv ./SDK ./SDK-target
109+
cd '${{ github.workspace }}'
110+
7z x '${{ env.ci_target_sdk_name }}.7z' '-o${{ github.workspace }}' -y
111+
mv './${{ env.ci_target_sdk_name }}' ./SDK-target
108112
109113
- name: Setup cmake
110114
uses: jwlawson/actions-setup-cmake@v1.8
@@ -153,7 +157,7 @@ jobs:
153157

154158
env:
155159
ci_platform: windows
156-
ci_target_sdk_name: rebelfork-sdk-Windows-msvc-dll-x64-latest.zip
160+
ci_target_sdk_name: rebelfork-sdk-windows-msvc-x64-dll-latest
157161
ci_build_mode: ${{ matrix.ci_build_mode }}
158162
ci_publish: ${{ github.ref == 'refs/heads/master' && github.repository == 'rbfx/sample-project' && matrix.ci_build_mode == 'sdk'}}
159163
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
@@ -181,14 +185,14 @@ jobs:
181185
with:
182186
repository: rbfx/rbfx
183187
tag: latest
184-
fileName: ${{ env.ci_target_sdk_name }}
188+
fileName: ${{ env.ci_target_sdk_name }}.7z
185189

186190
- name: Unzip target SDK
187191
if: ${{ matrix.ci_build_mode == 'sdk' }}
188192
run: |
189-
cd ${{ github.workspace }}
190-
unzip ${{ env.ci_target_sdk_name }}
191-
mv ./SDK ./SDK-target
193+
cd '${{ github.workspace }}'
194+
7z x '${{ env.ci_target_sdk_name }}.7z' '-o${{ github.workspace }}' -y
195+
mv './${{ env.ci_target_sdk_name }}' ./SDK-target
192196
193197
- name: Set up butler
194198
if: ${{ env.ci_publish }}

0 commit comments

Comments
 (0)