-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: minor edits to rust.yml, add untested macos build
- Loading branch information
Showing
2 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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" | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters