Skip to content

Commit

Permalink
[CI] Improve macOS build workflows (#1218)
Browse files Browse the repository at this point in the history
* [CI] Update macOS builds

* chore: filename

* chore: workflow name

---------

Co-authored-by: Flavio F Lima <[email protected]>
  • Loading branch information
flavioislima and flavioislima authored Jan 22, 2025
1 parent f07598f commit 25bafe8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build mac arm64
name: Build mac x64

on:
workflow_dispatch:
Expand All @@ -9,8 +9,8 @@ env:
RUDDERSTACK_CLIENT_ID: ${{ secrets.RUDDERSTACK_CLIENT_ID }}

jobs:
release-mac-arm64:
runs-on: macos-latest-xlarge
release-mac-x64:
runs-on: macos-13

steps:
- name: Checkout code
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
- uses: pnpm/action-setup@v3
with:
standalone: ${{ runner.os == 'Windows' }}
Expand All @@ -43,6 +43,6 @@ jobs:
echo "VITE_IPFS_API=${{ secrets.VITE_IPFS_API }}" >> .env
- name: Build artifacts.
run: pnpm release:mac:arm64
run: pnpm release:mac:x64
env:
NOTARIZE: true
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ jobs:
run: pnpm dist:linux:ci:rpm
- name: Build pacman artifact
run: pnpm dist:linux:ci:pacman
build_mac_x64:
runs-on: macos-13
build_mac_arm64:
runs-on: macos-latest
concurrency:
group: build-mac-x64-${{ github.ref }}
group: build-mac-arm64-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout repository.
Expand Down Expand Up @@ -127,14 +127,14 @@ jobs:
echo "VITE_LD_ENVIRONMENT_ID=${{ secrets.VITE_LD_ENVIRONMENT_ID_TEST }}" > .env
echo "VITE_IPFS_API=${{ secrets.VITE_IPFS_API }}" >> .env
- name: Build artifacts.
run: pnpm run dist:mac:x64
run: pnpm run dist:mac:arm64
env:
NOTARIZE: false
- name: Upload Intel build.
uses: actions/upload-artifact@v4
with:
name: mac-dmg-x64
path: dist/HyperPlay*x64.dmg
name: mac-dmg-arm64
path: dist/HyperPlay*arm64.dmg
retention-days: 7
if-no-files-found: error
compression-level: 3
2 changes: 1 addition & 1 deletion .github/workflows/release_macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
if-no-files-found: error

release-arm64:
runs-on: macos-latest-xlarge
runs-on: macos-latest

steps:
- name: Checkout code
Expand Down

0 comments on commit 25bafe8

Please sign in to comment.