From 3627ad8b37b3c39d40bdf383d7e9beaf27a8d689 Mon Sep 17 00:00:00 2001 From: akshayitzme Date: Mon, 11 Nov 2024 14:35:15 +0530 Subject: [PATCH] incr: added job for macos arm --- .github/workflows/publish.yml | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d6c6f34e..2d02f05c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -53,6 +53,56 @@ jobs: name: dist-macOS path: dist-macOS.tar + build-macos-arm: + runs-on: macos-14 + steps: + - name: Setup node + uses: actions/setup-node@v2 + with: + node-version: '18.19.0' + + - name: Checkout Books + uses: actions/checkout@v2 + + - name: Install Dependencies + run: | + yarn set version 1.22.18 + yarn + + - name: Set Error Log Creds + env: + ERR_LOG_KEY: ${{ secrets.ERR_LOG_KEY }} + ERR_LOG_URL: ${{ secrets.ERR_LOG_URL }} + ERR_LOG_SECRET: ${{ secrets.ERR_LOG_SECRET }} + TELEMETRY_URL: ${{ secrets.TELEMETRY_URL }} + run: | + echo $ERR_LOG_KEY > log_creds.txt + echo $ERR_LOG_SECRET >> log_creds.txt + echo $ERR_LOG_URL >> log_creds.txt + echo $TELEMETRY_URL >> log_creds.txt + + - name: Run build + env: + APPLE_ID: ${{ secrets.APPLE_ID }} + APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }} + APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + CSC_LINK: ${{ secrets.CSC_LINK }} + CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} + CSC_IDENTITY_AUTO_DISCOVERY: true + GH_TOKEN: ${{ secrets.GH_TOKEN }} + run: | + yarn set version 1.22.18 + yarn build --mac --publish always + + - name: Tar files + run: tar -cvf dist-macOS-arm.tar dist_electron + + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: dist-macOS-arm + path: dist-macOS-arm.tar + build-linux: runs-on: ubuntu-latest steps: