Skip to content

Build and publish macOS x64 binaries #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
push:
workflow_dispatch:
name: "macos"
jobs:
build_macOS_aarch64:
name: Building macOS aarch64
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Build binary
run: bash tool/build_macos.sh aarch64

- name: Upload binary
if: github.event_name == 'workflow_dispatch'
uses: ./.github/actions/upload
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
file-name: libpowersync_aarch64.dylib
tag: ${{ github.ref_name }}

build_macOS_x64:
name: Building macOS x64
runs-on: macos-12
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Build binary
run: bash tool/build_macos.sh x64

- name: Upload binary
if: github.event_name == 'workflow_dispatch'
uses: ./.github/actions/upload
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
file-name: libpowersync_x64.dylib
tag: ${{ github.ref_name }}
23 changes: 21 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ jobs:
file-name: powersync_x64.dll
tag: ${{ needs.draft_release.outputs.tag }}

publish_macOS:
name: Publish macOS
publish_macOS_aarch64:
name: Publish macOS aarch64
needs: [draft_release]
runs-on: macos-latest
steps:
Expand All @@ -194,3 +194,22 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
file-name: libpowersync_aarch64.dylib
tag: ${{ needs.draft_release.outputs.tag }}

publish_macOS_x64:
name: Publish macOS x64
needs: [draft_release]
runs-on: macos-12
steps:
- uses: actions/checkout@v3
with:
submodules: true

- name: Build binary
run: bash tool/build_macos.sh x64

- name: Upload binary
uses: ./.github/actions/upload
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
file-name: libpowersync_x64.dylib
tag: ${{ needs.draft_release.outputs.tag }}
Loading