Skip to content

Commit

Permalink
macos build fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekgsharma committed Oct 2, 2024
1 parent 827a7d3 commit 6920dee
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,36 @@ on:

jobs:
test-macos-build:
name: Test macOS Dashmate Build
runs-on: macos-14
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.JS
uses: ./.github/actions/nodejs
- name: Configure AWS credentials and bucket region
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Retrieve JS build artifacts
uses: strophy/actions-cache@opendal-update
with:
bucket: multi-runner-cache-x1xibo9c
root: actions-cache
path: build-js-artifacts-${{ github.sha }}.tar
key: build-js-artifacts/${{ github.sha }}

- name: Unpack JS build artifacts archive
run: tar -xf build-js-artifacts-${{ github.sha }}.tar

- name: Install macOS build deps
run: |
brew install llvm coreutils
echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH
- name: Set up Docker for macOS
uses: docker-practice/actions-setup-docker@master
Expand All @@ -48,17 +67,20 @@ jobs:
security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
security list-keychain -d user -s $KEYCHAIN_PATH
- name: Setup Node.JS
uses: ./.github/actions/nodejs

- name: Create package
env:
OSX_KEYCHAIN: ${{ runner.temp }}/app-signing.keychain-db
run: "${GITHUB_WORKSPACE}/scripts/pack_dashmate.sh macos"

- name: Notarize MacOS Release Build
run: |
find packages/dashmate/dist/ -name '*.pkg' -exec sh -c 'xcrun notarytool submit "{}" --apple-id "${{ secrets.MACOS_APPLE_ID }}" --team-id "${{ secrets.MACOS_TEAM_ID }}" --password "${{ secrets.MACOS_NOTARIZING_PASSWORD }}" --wait;' \;
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: dashmate-macos
path: packages/dashmate/dist/**
path: packages/dashmate/dist/**

- name: Notarize MacOS Release Build
run: |
find packages/dashmate/dist/ -name '*.pkg' -exec sh -c 'xcrun notarytool submit "{}" --apple-id "${{ secrets.MACOS_APPLE_ID }}" --team-id "${{ secrets.MACOS_TEAM_ID }}" --password "${{ secrets.MACOS_NOTARIZING_PASSWORD }}" --wait;' \;

0 comments on commit 6920dee

Please sign in to comment.