From 35acd6fbafcaaffa12a41f6b86a4b3fcc7a2d6a0 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Tue, 2 Jul 2024 22:51:18 +0100 Subject: [PATCH] feat: try building windows-arm64 --- .github/workflows/node.yaml | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/.github/workflows/node.yaml b/.github/workflows/node.yaml index 844cdee..a046510 100644 --- a/.github/workflows/node.yaml +++ b/.github/workflows/node.yaml @@ -198,6 +198,66 @@ jobs: path: ${{ steps.filenames.outputs.sourcename }} retention-days: 1 + Windows-arm64: + runs-on: windows-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version-file: '.node-version' + + - name: Run build + run: | + corepack enable + + # try and avoid timeout errors + yarn config set httpTimeout 100000 + + yarn + yarn --cwd webui install + yarn dist + + - name: Determine files to upload + id: filenames + shell: bash + run: | + HASH=$(git rev-parse --short HEAD) + COUNT=$(git rev-list --count HEAD) + VERSION=$(node -e "console.log(require('./package.json').version)") + + echo "sourcename=electron-output/companion-satellite-arm64.exe" >> $GITHUB_OUTPUT + echo "targetname=companion-satellite-arm64-${COUNT}-${HASH}.exe" >> $GITHUB_OUTPUT + echo "longversion=${VERSION}+${COUNT}-${HASH}" >> $GITHUB_OUTPUT + + - name: Upload build + uses: bitfocus/actions/upload-and-notify@main + with: + long-version: ${{ steps.filenames.outputs.longversion }} + beta-branch: main + + source-filename: ${{ steps.filenames.outputs.sourcename }} + destination-filename: ${{ steps.filenames.outputs.targetname }} + s3-host: ${{ secrets.S3_HOST }} + s3-bucket: ${{ secrets.S3_BUCKET }}/companion-satellite + s3-access-key: ${{ secrets.S3_KEY }} + s3-secret-key: ${{ secrets.S3_SECRET }} + + api-product: companion-satellite + api-target: 'win-arm64' + api-secret: ${{ secrets.BITFOCUS_API_PROJECT_SECRET }} + + - name: Upload as artifact + uses: actions/upload-artifact@v4 + with: + name: windows-arm64 + path: ${{ steps.filenames.outputs.sourcename }} + retention-days: 1 + Mac-x64: runs-on: macos-latest steps: