hack #4803
Workflow file for this run
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
name: Build binaries | |
on: [push] | |
jobs: | |
win64: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
- name: Cache build sources | |
uses: actions/cache@v4 | |
with: | |
path: .cache | |
key: windows-x64-build-cache | |
- name: build & package | |
shell: bash | |
run: | | |
corepack enable | |
# try and avoid timeout errors | |
yarn config set httpTimeout 100000 | |
yarn --immutable | |
yarn update || true | |
cat C:\Users\RUNNER~1\AppData\Local\Temp\*\build.log | |
# yarn zx tools/build/complete.mjs | |
env: | |
CI: 1 | |
CSC_LINK: ${{ secrets.CSC_LINK }} | |
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | |
SENTRY_DSN: ${{ secrets.SENTRY_DSN }} | |
# - name: Determine files to upload | |
# id: filenames | |
# shell: bash | |
# run: | | |
# VERSION=$(cat ./dist/BUILD) | |
# echo "sourcename=electron-output/companion-win64.exe" >> $GITHUB_OUTPUT | |
# echo "targetname=companion-win64-${VERSION}.exe" >> $GITHUB_OUTPUT | |
# echo "longversion=${VERSION}" >> $GITHUB_OUTPUT | |
# - name: Upload build | |
# uses: bitfocus/actions/upload-and-notify@main | |
# with: | |
# long-version: ${{ steps.filenames.outputs.longversion }} | |
# beta-branch: main | |
# dev-branch: develop | |
# source-filename: ${{ steps.filenames.outputs.sourcename }} | |
# destination-filename: ${{ steps.filenames.outputs.targetname }} | |
# s3-host: ${{ secrets.S3_HOST }} | |
# s3-bucket: ${{ secrets.S3_BUCKET }}/companion | |
# s3-access-key: ${{ secrets.S3_KEY }} | |
# s3-secret-key: ${{ secrets.S3_SECRET }} | |
# api-product: companion | |
# api-target: 'win-x64' | |
# api-secret: ${{ secrets.BITFOCUS_API_PROJECT_SECRET }} |