Skip to content

macos-build

macos-build #15

Workflow file for this run

name: macos-build
on:
workflow_dispatch:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
shared-key: "persist-cross-job"
- name: Do the stuff
shell: bash
run: |
mkdir -p artifacts
cargo build --release
mv target/release/kanata artifacts/kanata_macos_x86
cargo build --release --features cmd
mv target/release/kanata artifacts/kanata_macos_cmd_allowed_x86
- uses: actions/upload-artifact@v3
with:
name: macos-binaries
path: |
artifacts/kanata_macos_x86
artifacts/kanata_macos_cmd_allowed_x86