Node workflow - build linux arm64 in a container (#520)

Co-authored-by: acalcutt <acalcutt@worcester.edu>
This commit is contained in:
Andrew Calcutt
2022-12-09 15:05:11 -05:00
committed by GitHub
parent 07b047012a
commit a405d7a9b3
4 changed files with 136 additions and 7 deletions

View File

@@ -202,3 +202,37 @@ jobs:
if: github.ref != 'refs/heads/main'
run: |
npm pack --dry-run
test_linux_arm:
runs-on: macos-12-arm
name: test (ubuntu-20.04, arm64)
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Install dependencies macOS
if: runner.os == 'macOS'
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
run: |
brew install docker docker-compose
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Create the docker build image
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/arm64
file: platform/node/scripts/Dockerfile_Build
tags: build
push: false
load: true
- name: Run the docker build image and create node libs
run: docker run --rm -v $(pwd):/data build