From 56aaf4ae698026bd86e489de92fcccfc35067dab Mon Sep 17 00:00:00 2001 From: agracio Date: Sat, 26 Oct 2024 17:08:40 +0100 Subject: [PATCH] updating workflows --- .github/workflows/build-all.yml | 20 +++++++++++++++----- .github/workflows/build.yml | 18 ++++++++++++++---- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index e018261..f4c8472 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -25,11 +25,21 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Resolve Electron version for test + - name: Resolve Electron version from major id: electron-test-version - uses: ./.github/actions/get-electron-version - with: - electron: '${{ matrix.electron }}' + shell: bash + run: | + if [[ ${{ matrix.electron }} == '29' ]]; then + echo "test-version=29.4.6" >> $GITHUB_OUTPUT + elif [[ ${{ matrix.electron }} == '30' ]]; then + echo "test-version=30.5.1" >> $GITHUB_OUTPUT + elif [[ ${{ matrix.electron }} == '31' ]]; then + echo "test-version=31.7.2" >> $GITHUB_OUTPUT + elif [[ ${{ matrix.electron }} == '32' ]]; then + echo "test-version=32.2.2" >> $GITHUB_OUTPUT + elif [[ ${{ matrix.electron }} == '33' ]]; then + echo "test-version=33.0.2" >> $GITHUB_OUTPUT + fi - name: Setup env uses: ./.github/actions/setup-env @@ -82,7 +92,7 @@ jobs: name: test ${{ matrix.os }}-v${{ needs.build.outputs.test-version }} steps: - + - name: Test build uses: ./.github/actions/test-build with: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2cd4c2c..8c1ab64 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,11 +45,21 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Resolve Electron version for test + - name: Resolve Electron version from major id: electron-test-version - uses: ./.github/actions/get-electron-version - with: - electron: '${{ inputs.build-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.2" >> $GITHUB_OUTPUT + elif [[ ${{ inputs.build-version }} == '32' ]]; then + echo "test-version=32.2.2" >> $GITHUB_OUTPUT + elif [[ ${{ inputs.build-version }} == '33' ]]; then + echo "test-version=33.0.2" >> $GITHUB_OUTPUT + fi - name: Setup env uses: ./.github/actions/setup-env