mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-30 20:11:23 +00:00
Add macOS support to GitHub Actions workflow
This commit is contained in:
17
.github/workflows/rust.yml
vendored
17
.github/workflows/rust.yml
vendored
@@ -18,3 +18,20 @@ jobs:
|
|||||||
run: cargo build --verbose --release --all
|
run: cargo build --verbose --release --all
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose --release --all
|
run: cargo test --verbose --release --all
|
||||||
|
|
||||||
|
macOS:
|
||||||
|
name: Test on macOS-latest
|
||||||
|
runs-on: macOS-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Install Rust
|
||||||
|
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
|
- name: Install rustfmt
|
||||||
|
run: $HOME/.cargo/bin/rustup component add rustfmt
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Check formatting
|
||||||
|
run: $HOME/.cargo/bin/cargo fmt --all -- --check
|
||||||
|
- name: Build
|
||||||
|
run: $HOME/.cargo/bin/cargo build --verbose --release --all
|
||||||
|
- name: Run tests
|
||||||
|
run: $HOME/.cargo/bin/cargo test --verbose --release --all
|
||||||
|
Reference in New Issue
Block a user