Skip to content

Commit cd9adff

Browse files
committed
updating CI
1 parent 9a21c0a commit cd9adff

File tree

5 files changed

+396
-13
lines changed

5 files changed

+396
-13
lines changed

.github/workflows/build.yml

+19-12
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,28 @@ jobs:
4545
- name: Checkout code
4646
uses: actions/checkout@v4
4747

48-
- name: Resolve Electron version from major
48+
- name: Get latestElectron version for v${{ inputs.build-version }}
4949
id: electron-test-version
5050
shell: bash
5151
run: |
52-
if [[ ${{ inputs.build-version }} == '29' ]]; then
53-
echo "test-version=29.4.6" >> $GITHUB_OUTPUT
54-
elif [[ ${{ inputs.build-version }} == '30' ]]; then
55-
echo "test-version=30.5.1" >> $GITHUB_OUTPUT
56-
elif [[ ${{ inputs.build-version }} == '31' ]]; then
57-
echo "test-version=31.7.5" >> $GITHUB_OUTPUT
58-
elif [[ ${{ inputs.build-version }} == '32' ]]; then
59-
echo "test-version=32.2.6" >> $GITHUB_OUTPUT
60-
elif [[ ${{ inputs.build-version }} == '33' ]]; then
61-
echo "test-version=33.2.1" >> $GITHUB_OUTPUT
62-
fi
52+
node tools/getVersion.js ${{ inputs.build-version }}
53+
echo "test-version=$(cat electron.txt)" >> $GITHUB_OUTPUT
54+
55+
# - name: Resolve Electron version from major
56+
# id: electron-test-version
57+
# shell: bash
58+
# run: |
59+
# if [[ ${{ inputs.build-version }} == '29' ]]; then
60+
# echo "test-version=29.4.6" >> $GITHUB_OUTPUT
61+
# elif [[ ${{ inputs.build-version }} == '30' ]]; then
62+
# echo "test-version=30.5.1" >> $GITHUB_OUTPUT
63+
# elif [[ ${{ inputs.build-version }} == '31' ]]; then
64+
# echo "test-version=31.7.5" >> $GITHUB_OUTPUT
65+
# elif [[ ${{ inputs.build-version }} == '32' ]]; then
66+
# echo "test-version=32.2.6" >> $GITHUB_OUTPUT
67+
# elif [[ ${{ inputs.build-version }} == '33' ]]; then
68+
# echo "test-version=33.2.1" >> $GITHUB_OUTPUT
69+
# fi
6370

6471
- name: Setup env
6572
uses: ./.github/actions/setup-env

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,5 @@ mochawesome.json
107107
*.sln
108108
xunit*.*
109109
getVersion*.js
110-
*.vcxproj
110+
*.vcxproj
111+
getVersion*.js

0 commit comments

Comments
 (0)