Node workflow - build linux arm64 in a container (#520)
Co-authored-by: acalcutt <acalcutt@worcester.edu>
This commit is contained in:
34
.github/workflows/node-ci.yml
vendored
34
.github/workflows/node-ci.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user