Add shim library for MacOS ARM64 and Linux ARM64 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: libwasmer-build-shim-linux-arm64 | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
build: | |
name: Build shim library for Linux ARM64 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: "0" | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
load: true | |
platforms: linux/arm64 | |
file: ./Docker/arm64.dockerfile | |
tags: mx-builder | |
- name: Run container, build library | |
run: docker run --platform="linux/arm64" --rm mx-builder cat /data/libwasmer_linux_arm64_shim.so > $GITHUB_WORKSPACE/libwasmer_linux_arm64_shim.so | |
- name: Save artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts-linux-arm64 | |
path: | | |
libwasmer_linux_arm64_shim.so | |
if-no-files-found: error |