-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: remove workspace and fix to test lib with MSRV 1.57.0
- Loading branch information
1 parent
4abdd2b
commit 99dd1e1
Showing
6 changed files
with
1,714 additions
and
916 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 |
---|---|---|
|
@@ -6,10 +6,16 @@ jobs: | |
|
||
test-lib: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: payjoin | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rust: [stable, nightly] | ||
rust: | ||
- 1.57.0 # MSRV | ||
- stable | ||
- nightly | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -18,14 +24,20 @@ jobs: | |
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
- name: Fixes for MSRV | ||
if: matrix.rust == '1.57.0' | ||
run: | | ||
cargo update | ||
cargo update -p log --precise 0.4.18 | ||
cargo update -p tempfile --precise 3.6.0 | ||
- name: test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --verbose --all-features --lib --manifest-path payjoin/Cargo.toml | ||
run: cargo test --verbose --all-features --lib | ||
|
||
build-payjoin-cli: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: payjoin-cli | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -38,26 +50,25 @@ jobs: | |
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
- run: cd payjoin-cli | ||
- name: build payjoin example | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --manifest-path payjoin-cli/Cargo.toml | ||
- name: build payjoin cli example | ||
run: | | ||
cargo build | ||
fmt: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
rust: [nightly] | ||
package: [payjoin, payjoin-cli] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: Swatinem/[email protected] | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
toolchain: nightly | ||
override: true | ||
- run: rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu | ||
- run: cargo fmt --all -- --check | ||
- run: | | ||
cd ${{ matrix.package }} | ||
cargo fmt --all -- --check |
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,2 +1,2 @@ | ||
/target | ||
target | ||
*config.toml |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.