Skip to content

Commit

Permalink
#25: Generate arm64 releases and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Aug 17, 2021
1 parent b3668a3 commit eae8c13
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,30 @@ jobs:
else
mv dist/@lando/hyperdrive dist/@lando/hyperdrive-${{ matrix.platform }}-${{ matrix.arch }}
fi
# @NOTE: We cannot cross-compile arm64 builds on x64 runners so we run through docker for now
- name: Package ${{ matrix.arch }} ${{ matrix.platform }} CLI
uses: uraimo/[email protected]
if: ${{ matrix.arch == 'arm64' }}
with:
arch: aarch64
distro: ubuntu20.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/tmp/build"
--workdir /tmp/build
env: | # YAML, but pipe character is necessary
BUILD_PLATFORM: ${{ matrix.platform }}
BUILD_ARCH: ${{ matrix.arch }}
setup: |
mkdir -p /tmp/build/dist/@lando
run: |
uname -a
ls -lsa /tmp/build
touch dist/@lando/hyperdrive-$BUILD_PLATFORM-$BUILD_ARCH
node -v
yarn -v
- name: Upload hyperdrive-build-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.sha }}
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit eae8c13

Please sign in to comment.