Skip to content

Commit

Permalink
Fix ARM builds CI (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schniz committed Mar 8, 2021
1 parent 869fb12 commit 12bd19d
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/rust.yml
Expand Up @@ -111,9 +111,11 @@ jobs:
- arch: arm64
rust_target: aarch64-unknown-linux-musl
docker_image: arm64v8/ubuntu
docker_platform: aarch64
- arch: arm32
rust_target: armv7-unknown-linux-gnueabihf
docker_image: arm32v7/ubuntu
docker_platform: armv7
runs-on: ubuntu-latest
env:
RUST_TARGET: ${{ matrix.rust_target }}
Expand All @@ -133,15 +135,31 @@ jobs:
run: |
sudo apt-get install -y upx
upx target/$RUST_TARGET/release/fnm
- name: "Sanity test"
run: |
docker run --rm -v $(pwd):$(pwd) -e "RUST_LOG=fnm=debug" --workdir $(pwd) ${{matrix.docker_image}} bash -c '
$(pwd)/target/${{ env.RUST_TARGET }}/release/fnm --version
- uses: uraimo/run-on-arch-action@v2.0.9
name: Sanity test
with:
arch: ${{matrix.docker_platform}}
distro: ubuntu18.04

# Not required, but speeds up builds by storing container images in
# a GitHub package registry.
githubToken: ${{ github.token }}

env: |
RUST_LOG: fnm=debug
dockerRunArgs: |
--volume "${PWD}/target/${{matrix.rust_target}}/release:/artifacts"
# Set an output parameter `uname` for use in subsequent steps
run: |
echo "Hello from $(uname -a)"
/artifacts/fnm --version
echo "fnm install 12.0.0"
$(pwd)/target/${{ env.RUST_TARGET }}/release/fnm install 12.0.0
/artifacts/fnm install 12.0.0
echo "fnm exec --using=12 -- node --version"
$(pwd)/target/${{ env.RUST_TARGET }}/release/fnm exec --using=12 -- node --version
'
/artifacts/fnm exec --using=12 -- node --version
- uses: actions/upload-artifact@v2
with:
name: fnm-${{ matrix.arch }}
Expand Down

1 comment on commit 12bd19d

@vercel
Copy link

@vercel vercel bot commented on 12bd19d Mar 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.