-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) · 843 Bytes
/
Copy pathbuild-macos.yml
File metadata and controls
33 lines (33 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: macOS Build
on:
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- runner: macos-latest
arch: aarch64
- runner: macos-15-intel
arch: x86_64
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: brew install gtk4 gtksourceview5
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build release binary
run: cargo build --release
macos:
needs: build
if: always()
runs-on: ubuntu-latest
steps:
- name: Verify all matrix builds passed
run: |
if [ "${{ needs.build.result }}" != "success" ]; then
echo "One or more matrix builds failed"
exit 1
fi