Skip to content

Commit

Permalink
updating GitHub pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
agracio committed Sep 18, 2024
1 parent 89c9329 commit 37fa323
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,16 @@ jobs:

- name: Checkout code
uses: actions/checkout@v4

- name: Setup env
uses: ./.github/actions/setup-env
with:
electron: ${{ inputs.build-version }}
os: ${{ matrix.os }}

- name: install node-gyp
run: npm i -g node-gyp


- name: Resolve Electron version for test
id: electron-test-version
shell: bash
run: |
if [ ${{ inputs.build-version }} == '29.0.0' ]; then
if [ '${{ inputs.build-version }}' == '29.0.0' ]; then
echo "test-version=29.4.6" >> $GITHUB_OUTPUT
elif [ ${{ inputs.build-version }} == '30.0.0' ]; then
elif [ '${{ inputs.build-version }}' == '30.0.0' ]; then
echo "test-version=30.5.1" >> $GITHUB_OUTPUT
elif [ ${{ inputs.build-version }} == '31.0.0' ]; then
elif [ '${{ inputs.build-version }}' == '31.0.0' ]; then
echo "test-version=31.6.0" >> $GITHUB_OUTPUT
else
core.setFailed("Unable to resolve Electron version for testing")
Expand All @@ -71,6 +62,16 @@ jobs:
echo "the secret number is ${{ steps.electron-test-version.outputs.test-version }}"
exit 1
- name: Setup env
uses: ./.github/actions/setup-env
with:
electron: ${{ inputs.build-version }}
os: ${{ matrix.os }}

- name: install node-gyp
run: npm i -g node-gyp


- name: Create release folder
run: |
mkdir "release\ia32\${{ inputs.build-version }}"
Expand Down

0 comments on commit 37fa323

Please sign in to comment.