From 57e8028cb7090fc4102aba1c4b5f6f05cee6259e Mon Sep 17 00:00:00 2001 From: Luca Bolognese Date: Thu, 6 Aug 2026 07:55:06 +0200 Subject: [PATCH] Use latest Oscan release compiler Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1a3dd721-b278-42b6-9431-d8a8525dc5b6 --- .github/workflows/release.yml | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b40e3ea..a097119 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,12 +18,27 @@ on: permissions: contents: write -env: - OSCAN_VERSION: 0.0.43 - jobs: + resolve-oscan: + name: Resolve latest Oscan release + runs-on: ubuntu-latest + outputs: + tag: ${{ steps.release.outputs.tag }} + steps: + - name: Resolve latest release + id: release + shell: bash + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + set -euo pipefail + OSCAN_TAG="$(gh release view --repo lucabol/Oscan --json tagName --jq .tagName)" + echo "Using Oscan $OSCAN_TAG" + echo "tag=$OSCAN_TAG" >> "$GITHUB_OUTPUT" + build: name: Build ${{ matrix.name }} + needs: resolve-oscan strategy: fail-fast: false matrix: @@ -84,10 +99,11 @@ jobs: - name: Install Oscan shell: bash + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OSCAN_TAG: ${{ needs.resolve-oscan.outputs.tag }} run: | set -euo pipefail - OSCAN_TAG="v${OSCAN_VERSION}" - gh release view "$OSCAN_TAG" --repo lucabol/Oscan >/dev/null OSCAN_VER="${OSCAN_TAG#v}" echo "Installing Oscan $OSCAN_TAG" @@ -169,9 +185,6 @@ jobs: echo "$OSCAN_DIR" >> "$GITHUB_PATH" echo "Oscan installed from $OSCAN_DIR" - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Build browser shell: pwsh run: ./build.ps1 -Backend ${{ matrix.backend }} ${{ matrix.trusted_native_link_arg }} ${{ matrix.optimize_size_arg }} -Output "build/${{ matrix.output }}" -WindowsGui -V