From 4d0b2be0fd31082df165e98e6248fd6cfeb037ee Mon Sep 17 00:00:00 2001 From: krisbitney Date: Tue, 12 Sep 2023 14:37:04 +0300 Subject: [PATCH] added back pkg-action since replacement solution didn't handle QEMU emulation --- .github/workflows/cd-source.yaml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cd-source.yaml b/.github/workflows/cd-source.yaml index b0a8e37bc..81c2756de 100644 --- a/.github/workflows/cd-source.yaml +++ b/.github/workflows/cd-source.yaml @@ -79,22 +79,25 @@ jobs: yarn install yarn build - - name: Package into standalone binary + - name: Package into node binary if: env.TAG_EXISTS == 'false' - working-directory: ./packages/cli - run: | - npx pkg . --target=${{ matrix.node-version }}-${{ matrix.os }}-${{ matrix.arch }} --output ./standalone-binaries/polywrap-${{ matrix.os }}-${{ matrix.arch }} --compress Brotli - - - name: Extract binary path - if: env.TAG_EXISTS == 'false' - run: echo STANDALONE_BINARY_PATH=$(stat ./packages/cli/standalone-binaries/polywrap-${{ matrix.os }}-${{ matrix.arch }} | awk '/File:/ {print $2}') >> $GITHUB_ENV + uses: lando/pkg-action@v2 + with: + entrypoint: ./packages/cli/bin/polywrap + config: ./packages/cli/package.json + options: --compress Brotli + pkg: 5.8.1 + upload: false + arch: ${{ matrix.arch }} + node-version: ${{ matrix.node-version }} + os: ${{ matrix.os }} - name: Upload Artifacts if: env.TAG_EXISTS == 'false' uses: actions/upload-artifact@v3 with: - name: polywrap-${{ matrix.os }}-${{ matrix.arch }} - path: ${{ env.STANDALONE_BINARY_PATH }} + name: cli-binary-${{ matrix.os }}-${{ matrix.arch }} + path: ${{ steps.pkg-action.outputs.file }} Publish-GitHub: name: Publish source to github.com