-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#25: Generate arm64 releases and upload
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|