gitbutler/.github/workflows/pr.yaml
2023-02-03 13:23:09 +01:00

41 lines
913 B
YAML

name: "Test"
on: [pull_request]
jobs:
test-tauri:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, macos-aarch64]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7.x.x
run_install: |
args: ["--frozen-lockfile"]
- name: Setup rust
uses: dtolnay/rust-toolchain@stable
# TODO: figure out how to build aarch64 git on x86_64 runner
- name: Build git
run: cd src-tauri/binaries && make
- name: Build tauri
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tauriScript: "pnpm tauri"