From 77f719505dc62c81ab7f094b3f0cdaef3493e120 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 21 Jun 2024 18:42:55 +0100 Subject: [PATCH] Support later wabt versions --- .github/workflows/main.yml | 4 ++-- index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a1a3007..9667054 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,8 +8,8 @@ jobs: matrix: # 1.0.30 changed the format for downloads for macos, so we test # around that version specifically - wabt-version: ["1.0.20", "1.0.29", "1.0.30", "1.0.31"] - os: [ubuntu-latest, macos-latest, windows-latest] + wabt-version: ["1.0.20", "1.0.29", "1.0.30", "1.0.31", "1.0.34", "1.0.35"] + os: [ubuntu-latest, macos-13, windows-latest] steps: diff --git a/index.js b/index.js index 381bfff..f4c2794 100644 --- a/index.js +++ b/index.js @@ -18,7 +18,7 @@ function nodePlatformToWabtPlatform({nodePlatform, version}) { case "darwin": return semver.gte(version, "1.0.30") ? "macos-12" : "macos"; case "linux": - return "ubuntu"; + return semver.gte(version, "1.0.35") ? "ubuntu-20.04" : "ubuntu"; case "win32": return "windows"; default: