Skip to content

macos-build

macos-build #1

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: ${{ matrix.os }}
strategy:
matrix:
- build: macos

Check failure on line 17 in .github/workflows/macos-build.yml

View workflow run for this annotation

GitHub Actions / macos-build

Invalid workflow file

The workflow is not valid. .github/workflows/macos-build.yml (Line: 17, Col: 9): A sequence was not expected
os: macos-latest
target: x86_64-apple-darwin
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
shared-key: "persist-cross-job"
workspaces: ./
- name: Build release
run: cargo build --release
- name: Move build artifact
shell: bash
run: |
mv target/release/kanata ./kanata_macos
- name: Build release with cmd feature
run: cargo build --release --features cmd
- name: Move build artifact with cmd feature
shell: bash
run: |
mv target/release/kanata ./kanata_macos_cmd_allowed
- uses: actions/upload-artifact@v3
with:
name: macos-binaries
path: |
./kanata_macos
./kanata_macos_cmd_allowed