From 24f5d95310b0aabb4bbdde07d63c6e9d0987a135 Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Thu, 25 May 2023 10:47:27 +0100 Subject: [PATCH 1/5] ci: add aarch64-unknown-linux-gnu and s390x-unknown-linux-gnu as new test targets --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb5bd43..2c2bbfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,12 @@ jobs: - build: x86_64-mingw os: windows-latest target: x86_64-pc-windows-gnu + - build: aarch64-linux + os: ubuntu-latest + target: aarch64-unknown-linux-gnu + - build: s390x-linux + os: ubuntu-latest + target: s390x-unknown-linux-gnu steps: - uses: actions/checkout@v2 - name: Build From 3a9c2fc91394341c81a07caa7b1db53b19788f4e Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Thu, 25 May 2023 10:47:59 +0100 Subject: [PATCH 2/5] ci: add aarch64-unknown-linux-gnu and s390x-unknown-linux-gnu as new precompiled artifact targets --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3b0536..7b53ee1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,6 +89,14 @@ jobs: with: name: bins-x86_64-linux path: dist + - uses: actions/download-artifact@v1 + with: + name: bins-aarch64-linux + path: dist + - uses: actions/download-artifact@v1 + with: + name: bins-s390x-linux + path: dist - name: Calculate tag name run: | From 74d830070e4b2de2a973161e338f19090f0a94c2 Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Thu, 25 May 2023 10:48:42 +0100 Subject: [PATCH 3/5] ci: publish the npm packages when a new tag is pushed --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b53ee1..4874c6b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -121,3 +121,13 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} name: ${{ steps.tagname.outputs.val }} continue-on-error: true + - name: Update npm packages to latest version + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + working-directory: ./npm/wizer + run: npm install && npm version "${{ steps.tagname.outputs.val }}" + - name: Publish npm packages + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + working-directory: ./npm + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: for n in *; do (echo $n && cd $n && npm publish); done \ No newline at end of file From b0215eae033c8aac4c4ad6154d19f051f3959d48 Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Thu, 25 May 2023 15:05:13 +0100 Subject: [PATCH 4/5] add npm packages for linux arm64 and s390x --- .gitignore | 2 ++ npm/wizer/wizer.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 80730c7..196c957 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ npm/wizer-darwin-arm64/ npm/wizer-darwin-x64/ npm/wizer-linux-x64/ npm/wizer-win32-x64/ +npm/wizer-linux-s390x/ +npm/wizer-linux-arm64/ \ No newline at end of file diff --git a/npm/wizer/wizer.js b/npm/wizer/wizer.js index 46b9a93..77ac533 100755 --- a/npm/wizer/wizer.js +++ b/npm/wizer/wizer.js @@ -6,7 +6,9 @@ const knownPackages = { "win32 x64 LE": "@bytecodealliance/wizer-win32-x64", "darwin arm64 LE": "@bytecodealliance/wizer-darwin-arm64", "darwin x64 LE": "@bytecodealliance/wizer-darwin-x64", + "linux arm64 LE": "@bytecodealliance/wizer-linux-arm64", "linux x64 LE": "@bytecodealliance/wizer-linux-x64", + "linux s390x BE": "@bytecodealliance/wizer-linux-s390x", }; function pkgForCurrentPlatform() { From 4ee566f3d64898d4f69298ac8eef3da492af985c Mon Sep 17 00:00:00 2001 From: Jake Champion Date: Thu, 25 May 2023 15:06:02 +0100 Subject: [PATCH 5/5] Update release.yml --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4874c6b..bcf1193 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -130,4 +130,4 @@ jobs: working-directory: ./npm env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: for n in *; do (echo $n && cd $n && npm publish); done \ No newline at end of file + run: for dir in *; do (echo $dir && cd $dir && npm publish); done