Add missing toolchains. #7
Workflow file for this run
This file contains hidden or 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
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: Setup | |
run: | | |
rustup toolchain install nightly-2024-05-18-aarch64-apple-darwin | |
rustup component add rust-src --toolchain nightly-2024-05-18-aarch64-apple-darwin | |
- name: Build binary | |
run: ./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: Setup | |
run: | | |
rustup toolchain install nightly-2024-05-18-x86_64-apple-darwin | |
rustup component add rust-src --toolchain nightly-2024-05-18-x86_64-apple-darwin | |
- name: Build binary | |
run: ./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 }} |