forked from bitcoin-teleport/teleport-transactions
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #223 from 007harshmahajan/macos_build
MacOS Build
- Loading branch information
Showing
7 changed files
with
62 additions
and
37 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
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 |
---|---|---|
@@ -1,30 +1,43 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- master | ||
pull_request: | ||
|
||
name: lint | ||
|
||
jobs: | ||
|
||
fmt: | ||
name: rust fmt | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set default toolchain | ||
run: rustup default nightly | ||
|
||
- name: Set profile | ||
run: rustup set profile minimal | ||
|
||
- name: Add rustfmt | ||
run: rustup component add rustfmt | ||
|
||
- name: Add clippy | ||
run: rustup component add clippy | ||
|
||
- name: Install dependencies on macOS | ||
if: matrix.os == 'macos-latest' | ||
run: brew install automake libtool zeromq | ||
|
||
- name: Update toolchain | ||
run: rustup update | ||
|
||
- name: Check fmt | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Clippy | ||
run: cargo clippy --all-targets --all-features -- -D warnings | ||
run: cargo clippy --all-targets --all-features -- -D warnings |
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 |
---|---|---|
@@ -1,42 +1,48 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- master | ||
pull_request: | ||
|
||
name: test | ||
|
||
jobs: | ||
test_with_codecov: | ||
name: Run tests with coverage reporting | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set default toolchain | ||
run: rustup default nightly | ||
|
||
- name: Set profile | ||
run: rustup set profile minimal | ||
|
||
# Pin grcov to v0.8.2 because of build failure at 0.8.3 | ||
- name: Install grcov | ||
run: cargo install grcov --force --version 0.8.2 | ||
|
||
# Tests are run with code coverage support | ||
- name: Install dependencies on macOS | ||
if: matrix.os == 'macos-latest' | ||
run: brew install automake libtool zeromq | ||
|
||
- name: Run cargo test | ||
env: | ||
CARGO_INCREMENTAL: '0' | ||
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off' | ||
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off' | ||
run: cargo test --features=integration-test -- --nocapture | ||
|
||
- id: coverage | ||
name: Generate coverage | ||
uses: actions-rs/grcov@v0.1.5 | ||
|
||
# Upload coverage report | ||
|
||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
file: ${{ steps.coverage.outputs.report }} | ||
directory: ./coverage/reports/ | ||
directory: ./coverage/reports/ |
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
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
Binary file not shown.
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