-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
82 additions
and
30 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,55 @@ | ||
name: macos | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
runs-on: "macos-latest" | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: "Install Rust" | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: "minimal" | ||
toolchain: "stable" | ||
override: true | ||
components: "rustfmt" | ||
- name: "Cache cargo registry" | ||
uses: actions/cache@v1 | ||
with: | ||
path: "~/.cargo/registry" | ||
key: "macos-${{ hashFiles('Cargo.lock') }}-cargo-registry" | ||
- name: "Cache cargo index" | ||
uses: actions/cache@v1 | ||
with: | ||
path: "~/.cargo/git" | ||
key: "macos-${{ hashFiles('Cargo.lock') }}-cargo-index" | ||
- name: "Cache cargo build" | ||
uses: actions/cache@v1 | ||
with: | ||
path: "target" | ||
key: "macos-${{ hashFiles('Cargo.lock') }}-cargo-build-target" | ||
- name: Check formatting | ||
run: cargo fmt --all -- --check | ||
- name: Build | ||
run: cargo build --all --release | ||
- name: Test | ||
run: cargo test --all | ||
- name: Move Windows Package | ||
shell: bash | ||
run: | | ||
mkdir pkg_ | ||
mv target/release/*.exe pkg_ | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: macos | ||
path: pkg_ | ||
|
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