Skip to content

Commit

Permalink
Support later wabt versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilliamson committed Jun 21, 2024
1 parent 565df49 commit d87f296
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,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:
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d87f296

Please sign in to comment.