From b2d8a29e29e3db6b695a9e96e4ebf82dd437720b Mon Sep 17 00:00:00 2001 From: Mike Pirog Date: Tue, 17 Aug 2021 10:29:37 -0400 Subject: [PATCH] #25: Generate arm64 releases and upload part 3 --- .github/workflows/release.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1256abf..f4d6bbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/run-on-arch-action@v2.0.5 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