Skip to content

Commit

Permalink
updating CI
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio committed Dec 5, 2024
1 parent 9a21c0a commit cd9adff
Show file tree
Hide file tree
Showing 5 changed files with 396 additions and 13 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,28 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Resolve Electron version from major
- name: Get latestElectron version for v${{ inputs.build-version }}
id: electron-test-version
shell: bash
run: |
if [[ ${{ inputs.build-version }} == '29' ]]; then
echo "test-version=29.4.6" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.build-version }} == '30' ]]; then
echo "test-version=30.5.1" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.build-version }} == '31' ]]; then
echo "test-version=31.7.5" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.build-version }} == '32' ]]; then
echo "test-version=32.2.6" >> $GITHUB_OUTPUT
elif [[ ${{ inputs.build-version }} == '33' ]]; then
echo "test-version=33.2.1" >> $GITHUB_OUTPUT
fi
node tools/getVersion.js ${{ inputs.build-version }}
echo "test-version=$(cat electron.txt)" >> $GITHUB_OUTPUT
# - name: Resolve Electron version from major
# id: electron-test-version
# shell: bash
# run: |
# if [[ ${{ inputs.build-version }} == '29' ]]; then
# echo "test-version=29.4.6" >> $GITHUB_OUTPUT
# elif [[ ${{ inputs.build-version }} == '30' ]]; then
# echo "test-version=30.5.1" >> $GITHUB_OUTPUT
# elif [[ ${{ inputs.build-version }} == '31' ]]; then
# echo "test-version=31.7.5" >> $GITHUB_OUTPUT
# elif [[ ${{ inputs.build-version }} == '32' ]]; then
# echo "test-version=32.2.6" >> $GITHUB_OUTPUT
# elif [[ ${{ inputs.build-version }} == '33' ]]; then
# echo "test-version=33.2.1" >> $GITHUB_OUTPUT
# fi

- name: Setup env
uses: ./.github/actions/setup-env
Expand Down
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,5 @@ mochawesome.json
*.sln
xunit*.*
getVersion*.js
*.vcxproj
*.vcxproj
getVersion*.js
Loading

0 comments on commit cd9adff

Please sign in to comment.