Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ValuedMammal committed Sep 10, 2024
1 parent 81432a8 commit 545603a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
name: Build & Test

on:
push:
branches:
- master
pull_request:
on: [push, pull_request]

# on:
# push:
# branches:
# - master
# pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [ubuntu-latest]
toolchain: [stable]
include:
rust:
- toolchain: stable
- toolchain: 1.63.0
msrv: true
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Update Toolchain
- name: checkout
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust.toolchain }}
components: clippy, rustfmt
- name: Pin deps for MSRV
if: matrix.rust.toolchain == '1.63.0'
run: |
rustup default ${{ matrix.toolchain }}
rustup component add --toolchain ${{ matrix.toolchain }} rustfmt
rustup component add --toolchain ${{ matrix.toolchain }} clippy
rustup update ${{ matrix.toolchain }}
cargo update -p tokio --precise "1.37.0"
- name: Lint all targets
run: cargo clippy
- name: Format
run: cargo fmt -- --check
- name: Build with defeault features
run: cargo build --verbose
- name: Check release build on Rust ${{ matrix.toolchain }}
- name: Check release build on Rust ${{ matrix.rust.toolchain }}
run: cargo check --release --verbose --color always
- name: Test
run: cargo test --verbose
run: cargo test --verbose
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "bdk_kyoto"
version = "0.1.0"
edition = "2021"
rust-version = "1.63.0"

[dependencies]
bdk_chain = { version = "0.18.0" }
Expand Down

0 comments on commit 545603a

Please sign in to comment.