aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/macos.yml
blob: 55c5d676c50a18b47fd032570e9fcb4f330ecd74 (plain) (blame)
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
name: macOS build
on:
  push:
  pull_request:
  workflow_dispatch:
jobs:
  build:
    strategy:
      matrix:
        os: [macos-15, macos-15-intel]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - name: Prepare Rust and native tools
        run: |
          rustup update stable
          rustup default stable
          brew install cmake pkgconf python
          if ! xcrun --find metal >/dev/null 2>&1; then
            xcodebuild -downloadComponent MetalToolchain
          fi
      - name: Test
        run: cargo test --locked
      - name: Build and package
        run: ./build.sh
      - name: Check installed configuration and app bundle
        run: |
          "$HOME/.local/bin/ducky" --check-config
          plutil -lint "$HOME/Applications/Ducky.app/Contents/Info.plist"
          codesign --verify --deep --strict "$HOME/Applications/Ducky.app"