From 1f7570f78dd708f2bd5813d6ded98be029086b39 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Tue, 15 Oct 2024 16:59:19 -0700 Subject: [PATCH 1/2] CI: Setup SBT manually One of the core developers of SBT has kindly created an action to replace the missing SBT in newer Ubuntu images. https://github.com/marketplace/actions/setup-sbt-installer Closes: #4267 --- .github/workflows/esmeta-test262.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/esmeta-test262.yml b/.github/workflows/esmeta-test262.yml index 2c605d0177..1198567691 100644 --- a/.github/workflows/esmeta-test262.yml +++ b/.github/workflows/esmeta-test262.yml @@ -14,6 +14,8 @@ jobs: with: distribution: temurin java-version: 17 + - name: Setup SBT + uses: sbt/setup-sbt@v1 - name: Add to PATH shell: bash run: | From 4490108fd791662d97431a0b4ccb4738277f2447 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Wed, 16 Oct 2024 04:54:41 -0700 Subject: [PATCH 2/2] CI: Only install SBT if not present on Ubuntu image --- .github/workflows/esmeta-test262.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/esmeta-test262.yml b/.github/workflows/esmeta-test262.yml index 1198567691..5959370879 100644 --- a/.github/workflows/esmeta-test262.yml +++ b/.github/workflows/esmeta-test262.yml @@ -16,6 +16,8 @@ jobs: java-version: 17 - name: Setup SBT uses: sbt/setup-sbt@v1 + if: ${{ hashFiles('/usr/bin/sbt') == '' }} + # https://www.peterbe.com/plog/how-to-run-workflow-step-if-a-file-exists - name: Add to PATH shell: bash run: |