-
-
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 part 3
- Loading branch information
Showing
1 changed file
with
10 additions
and
2 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 |
---|---|---|
|
@@ -66,6 +66,7 @@ jobs: | |
fi | ||
# @NOTE: We cannot cross-compile arm64 builds on x64 runners so we run through docker for now | ||
# @TODO: switch this to use arm64 runners whenever those are available | ||
- name: Package ${{ matrix.platform }} CLI | ||
uses: uraimo/[email protected] | ||
if: ${{ matrix.arch == 'arm64' }} | ||
|
@@ -76,14 +77,21 @@ jobs: | |
dockerRunArgs: | | ||
--volume "${PWD}:/tmp/build" | ||
--workdir /tmp/build | ||
env: | # YAML, but pipe character is necessary | ||
env: | | ||
BUILD_PLATFORM: ${{ matrix.platform }} | ||
BUILD_ARCH: ${{ matrix.arch }} | ||
# We need to install node and yarn "again" because they dont exist inside our build container | ||
setup: | | ||
mkdir -p /tmp/build/dist/@lando | ||
apt -y update | ||
curl -sL https://deb.nodesource.com/setup_14.x | bash - | ||
apt -y install nodejs | ||
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | ||
apt -y update && apt -y install yarn | ||
run: | | ||
uname -a | ||
ls -lsa /tmp/build | ||
mkdir -p /tmp/build/dist/@lando | ||
touch /tmp/build/dist/@lando/hyperdrive-$BUILD_PLATFORM-$BUILD_ARCH | ||
node -v | ||
yarn -v | ||
|