Skip to content

Commit 6fb961a

Browse files
committed
updating CI
1 parent c986cb8 commit 6fb961a

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

.github/workflows/build-all.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ jobs:
3939
mkdir "release\x64\${{ matrix.electron }}.0.0"
4040
mkdir "release\arm64\${{ matrix.electron }}.0.0"
4141
42+
- name: Cache node-gyp
43+
uses: actions/cache@v4
44+
env:
45+
cache-name: cache-node-gyp
46+
with:
47+
path: ~\AppData\Local\node-gyp\Cache
48+
key: '${{ matrix.electron }}.0.0'
49+
4250
- name: Build ia32
4351
timeout-minutes: 30
4452
uses: ./.github/actions/build
@@ -79,7 +87,7 @@ jobs:
7987
- name: Electron versions
8088
shell: bash
8189
id: electron-test-versions
82-
run: echo "matrix={'include':[{'electron':'29.4.6', 'os':'windows-2022'},{'electron':'30.5.1', 'os':'windows-2022'},{'electron':'31.7.5', 'os':'windows-2022'},{'electron':'32.2.5', 'os':'windows-2022'},{'electron':'33.2.0', 'os':'windows-2022'}]}" >> $GITHUB_OUTPUT
90+
run: echo "matrix={'include':[{'electron':'29.4.6', 'os':'windows-2022'},{'electron':'30.5.1', 'os':'windows-2022'},{'electron':'31.7.5', 'os':'windows-2022'},{'electron':'32.2.6', 'os':'windows-2022'},{'electron':'33.2.1', 'os':'windows-2022'}]}" >> $GITHUB_OUTPUT
8391

8492
test:
8593
strategy:

.github/workflows/build.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ jobs:
5656
elif [[ ${{ inputs.build-version }} == '31' ]]; then
5757
echo "test-version=31.7.5" >> $GITHUB_OUTPUT
5858
elif [[ ${{ inputs.build-version }} == '32' ]]; then
59-
echo "test-version=32.2.5" >> $GITHUB_OUTPUT
59+
echo "test-version=32.2.6" >> $GITHUB_OUTPUT
6060
elif [[ ${{ inputs.build-version }} == '33' ]]; then
61-
echo "test-version=33.2.0" >> $GITHUB_OUTPUT
61+
echo "test-version=33.2.1" >> $GITHUB_OUTPUT
6262
fi
6363
6464
- name: Setup env
@@ -76,6 +76,14 @@ jobs:
7676
mkdir "release\x64\${{ inputs.build-version }}.0.0"
7777
mkdir "release\arm64\${{ inputs.build-version }}.0.0"
7878
79+
- name: Cache node-gyp
80+
uses: actions/cache@v4
81+
env:
82+
cache-name: cache-node-gyp
83+
with:
84+
path: ~\AppData\Local\node-gyp\Cache
85+
key: '${{ inputs.build-version }}.0.0'
86+
7987
- name: Build ia32
8088
timeout-minutes: 30
8189
uses: ./.github/actions/build

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
os: [macos-13, macos-14, ubuntu-22.04, windows-2022]
8585
# os: [ macos-14, ubuntu-22.04]
8686
# electron: [32.1.2]
87-
electron: [29.4.6, 30.5.1, 31.7.5, 32.2.5, 33.2.0]
87+
electron: [29.4.6, 30.5.1, 31.7.5, 32.2.6, 33.2.1]
8888
# electron: [31.6.0, 32.1.0]
8989

9090
name: test-${{ matrix.os }}-v${{ matrix.electron }}

0 commit comments

Comments
 (0)