diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/macos.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..55c5d67 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,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" |