2020-04-21 12:24:39 +02:00
|
|
|
name: Continuous Integration Checks
|
|
|
|
|
2020-04-24 22:22:44 +02:00
|
|
|
on: [push, pull_request]
|
2020-04-21 12:24:39 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
2021-07-29 19:40:14 +02:00
|
|
|
fail-fast: false
|
2020-04-21 12:24:39 +02:00
|
|
|
matrix:
|
2020-09-17 20:22:55 +02:00
|
|
|
platform: [ ubuntu-latest ]
|
2020-04-21 12:24:39 +02:00
|
|
|
toolchain: [ stable,
|
|
|
|
beta,
|
2022-02-08 22:28:11 +01:00
|
|
|
# 1.41.1 is MSRV for Rust-Lightning, lightning-invoice, and lightning-persister
|
|
|
|
1.41.1,
|
2021-01-11 19:50:54 +01:00
|
|
|
# 1.45.2 is MSRV for lightning-net-tokio, lightning-block-sync, and coverage generation
|
2021-05-27 06:04:20 +02:00
|
|
|
1.45.2,
|
2021-08-03 09:38:44 +02:00
|
|
|
# 1.47.0 will be the MSRV for no-std builds using hashbrown once core2 is updated
|
2021-07-22 17:01:03 +02:00
|
|
|
1.47.0]
|
2020-04-21 12:24:39 +02:00
|
|
|
include:
|
|
|
|
- toolchain: stable
|
|
|
|
build-net-tokio: true
|
2021-05-27 06:04:20 +02:00
|
|
|
build-no-std: true
|
2020-09-17 20:22:55 +02:00
|
|
|
- toolchain: stable
|
|
|
|
platform: macos-latest
|
|
|
|
build-net-tokio: true
|
2021-05-27 06:04:20 +02:00
|
|
|
build-no-std: true
|
2021-08-02 16:52:02 +02:00
|
|
|
- toolchain: beta
|
|
|
|
platform: macos-latest
|
|
|
|
build-net-tokio: true
|
|
|
|
build-no-std: true
|
2020-09-17 20:22:55 +02:00
|
|
|
- toolchain: stable
|
|
|
|
platform: windows-latest
|
|
|
|
build-net-tokio: true
|
2021-05-27 06:04:20 +02:00
|
|
|
build-no-std: true
|
2021-08-02 16:52:02 +02:00
|
|
|
- toolchain: beta
|
|
|
|
platform: windows-latest
|
|
|
|
build-net-tokio: true
|
|
|
|
build-no-std: true
|
2020-04-21 12:24:39 +02:00
|
|
|
- toolchain: beta
|
|
|
|
build-net-tokio: true
|
2021-05-27 06:04:20 +02:00
|
|
|
build-no-std: true
|
2022-02-08 22:28:11 +01:00
|
|
|
- toolchain: 1.41.1
|
2021-05-27 06:04:20 +02:00
|
|
|
build-no-std: false
|
2021-11-24 00:03:34 +01:00
|
|
|
test-log-variants: true
|
2021-01-26 22:21:03 +01:00
|
|
|
- toolchain: 1.45.2
|
2021-12-16 03:10:09 +01:00
|
|
|
build-net-old-tokio: true
|
2020-04-21 12:24:39 +02:00
|
|
|
build-net-tokio: true
|
2021-05-27 06:04:20 +02:00
|
|
|
build-no-std: false
|
2020-04-21 12:24:39 +02:00
|
|
|
coverage: true
|
2021-07-22 17:01:03 +02:00
|
|
|
- toolchain: 1.47.0
|
2021-12-16 03:21:48 +01:00
|
|
|
build-no-std: true
|
2020-09-17 20:22:55 +02:00
|
|
|
runs-on: ${{ matrix.platform }}
|
2020-04-21 12:24:39 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
2022-03-02 18:35:18 +01:00
|
|
|
uses: actions/checkout@v3
|
2020-04-21 12:24:39 +02:00
|
|
|
- name: Install Rust ${{ matrix.toolchain }} toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.toolchain }}
|
|
|
|
override: true
|
|
|
|
profile: minimal
|
2021-12-16 03:10:09 +01:00
|
|
|
- name: Pin tokio to 1.14 for Rust 1.45
|
|
|
|
if: "matrix.build-net-old-tokio"
|
|
|
|
run: cargo update -p tokio --precise "1.14.0" --verbose
|
2022-08-23 09:20:35 +02:00
|
|
|
env:
|
|
|
|
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
|
2020-04-21 12:24:39 +02:00
|
|
|
- name: Build on Rust ${{ matrix.toolchain }} with net-tokio
|
2020-09-17 20:10:41 +02:00
|
|
|
if: "matrix.build-net-tokio && !matrix.coverage"
|
|
|
|
run: cargo build --verbose --color always
|
|
|
|
- name: Build on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
|
|
|
|
if: matrix.coverage
|
2020-04-24 07:06:15 +02:00
|
|
|
run: RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always
|
2020-04-21 12:24:39 +02:00
|
|
|
- name: Build on Rust ${{ matrix.toolchain }}
|
|
|
|
if: "! matrix.build-net-tokio"
|
2021-05-27 06:04:20 +02:00
|
|
|
run: |
|
|
|
|
cargo build --verbose --color always -p lightning
|
|
|
|
cargo build --verbose --color always -p lightning-invoice
|
|
|
|
cargo build --verbose --color always -p lightning-persister
|
2021-11-24 00:03:34 +01:00
|
|
|
- name: Build on Rust ${{ matrix.toolchain }} with all Log-Limiting features
|
|
|
|
if: matrix.test-log-variants
|
|
|
|
run: |
|
|
|
|
cd lightning
|
|
|
|
for FEATURE in $(cat Cargo.toml | grep '^max_level_' | awk '{ print $1 }'); do
|
|
|
|
cargo build --verbose --color always --features $FEATURE
|
|
|
|
done
|
2021-01-11 19:50:54 +01:00
|
|
|
- name: Build Block Sync Clients on Rust ${{ matrix.toolchain }} with features
|
|
|
|
if: "matrix.build-net-tokio && !matrix.coverage"
|
|
|
|
run: |
|
|
|
|
cd lightning-block-sync
|
|
|
|
cargo build --verbose --color always --features rest-client
|
|
|
|
cargo build --verbose --color always --features rpc-client
|
|
|
|
cargo build --verbose --color always --features rpc-client,rest-client
|
|
|
|
cargo build --verbose --color always --features rpc-client,rest-client,tokio
|
|
|
|
- name: Build Block Sync Clients on Rust ${{ matrix.toolchain }} with features and full code-linking for coverage generation
|
|
|
|
if: matrix.coverage
|
|
|
|
run: |
|
|
|
|
cd lightning-block-sync
|
|
|
|
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rest-client
|
|
|
|
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client
|
|
|
|
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client
|
|
|
|
RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features rpc-client,rest-client,tokio
|
2022-01-13 02:00:43 +01:00
|
|
|
- name: Test backtrace-debug builds on Rust ${{ matrix.toolchain }}
|
|
|
|
if: "matrix.build-no-std"
|
|
|
|
run: |
|
|
|
|
cd lightning && cargo test --verbose --color always --features backtrace
|
2020-04-21 12:24:39 +02:00
|
|
|
- name: Test on Rust ${{ matrix.toolchain }} with net-tokio
|
2020-09-17 20:10:41 +02:00
|
|
|
if: "matrix.build-net-tokio && !matrix.coverage"
|
|
|
|
run: cargo test --verbose --color always
|
|
|
|
- name: Test on Rust ${{ matrix.toolchain }} with net-tokio and full code-linking for coverage generation
|
|
|
|
if: matrix.coverage
|
2020-04-24 07:06:15 +02:00
|
|
|
run: RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always
|
2021-08-03 09:38:44 +02:00
|
|
|
- name: Test on no-std bullds Rust ${{ matrix.toolchain }}
|
2021-05-27 06:04:20 +02:00
|
|
|
if: "matrix.build-no-std && !matrix.coverage"
|
2022-01-04 23:34:15 +01:00
|
|
|
shell: bash # Default on Winblows is powershell
|
2021-05-27 06:04:20 +02:00
|
|
|
run: |
|
2022-10-06 17:41:58 +02:00
|
|
|
for DIR in lightning lightning-invoice lightning-rapid-gossip-sync; do
|
|
|
|
cd $DIR
|
|
|
|
cargo test --verbose --color always --no-default-features --features no-std
|
|
|
|
# check if there is a conflict between no-std and the default std feature
|
|
|
|
cargo test --verbose --color always --features no-std
|
|
|
|
# check that things still pass without grind_signatures
|
|
|
|
# note that outbound_commitment_test only runs in this mode, because of hardcoded signature values
|
|
|
|
cargo test --verbose --color always --no-default-features --features std
|
|
|
|
# check if there is a conflict between no-std and the c_bindings cfg
|
|
|
|
RUSTFLAGS="--cfg=c_bindings" cargo test --verbose --color always --no-default-features --features=no-std
|
|
|
|
cd ..
|
|
|
|
done
|
2022-03-04 08:59:44 +01:00
|
|
|
# check no-std compatibility across dependencies
|
|
|
|
cd no-std-check
|
|
|
|
cargo check --verbose --color always
|
2021-12-22 17:43:25 +01:00
|
|
|
cd ..
|
2021-08-03 09:38:44 +02:00
|
|
|
- name: Test on no-std builds Rust ${{ matrix.toolchain }} and full code-linking for coverage generation
|
2021-05-27 06:04:20 +02:00
|
|
|
if: "matrix.build-no-std && matrix.coverage"
|
|
|
|
run: |
|
|
|
|
cd lightning
|
2021-08-03 09:38:44 +02:00
|
|
|
RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --no-default-features --features no-std
|
2021-05-27 06:04:20 +02:00
|
|
|
cd ..
|
2020-04-21 12:24:39 +02:00
|
|
|
- name: Test on Rust ${{ matrix.toolchain }}
|
|
|
|
if: "! matrix.build-net-tokio"
|
2021-05-27 06:04:20 +02:00
|
|
|
run: |
|
|
|
|
cargo test --verbose --color always -p lightning
|
|
|
|
cargo test --verbose --color always -p lightning-invoice
|
2021-11-03 18:50:08 +01:00
|
|
|
cargo test --verbose --color always -p lightning-rapid-gossip-sync
|
2021-05-27 06:04:20 +02:00
|
|
|
cargo build --verbose --color always -p lightning-persister
|
2021-11-21 23:29:48 +01:00
|
|
|
cargo build --verbose --color always -p lightning-background-processor
|
|
|
|
- name: Test C Bindings Modifications on Rust ${{ matrix.toolchain }}
|
|
|
|
if: "! matrix.build-net-tokio"
|
|
|
|
run: |
|
|
|
|
RUSTFLAGS="--cfg=c_bindings" cargo test --verbose --color always -p lightning
|
|
|
|
RUSTFLAGS="--cfg=c_bindings" cargo test --verbose --color always -p lightning-invoice
|
|
|
|
RUSTFLAGS="--cfg=c_bindings" cargo build --verbose --color always -p lightning-persister
|
|
|
|
RUSTFLAGS="--cfg=c_bindings" cargo build --verbose --color always -p lightning-background-processor
|
2021-01-11 19:50:54 +01:00
|
|
|
- name: Test Block Sync Clients on Rust ${{ matrix.toolchain }} with features
|
|
|
|
if: "matrix.build-net-tokio && !matrix.coverage"
|
|
|
|
run: |
|
|
|
|
cd lightning-block-sync
|
|
|
|
cargo test --verbose --color always --features rest-client
|
|
|
|
cargo test --verbose --color always --features rpc-client
|
|
|
|
cargo test --verbose --color always --features rpc-client,rest-client
|
|
|
|
cargo test --verbose --color always --features rpc-client,rest-client,tokio
|
|
|
|
- name: Test Block Sync Clients on Rust ${{ matrix.toolchain }} with features and full code-linking for coverage generation
|
|
|
|
if: matrix.coverage
|
|
|
|
run: |
|
|
|
|
cd lightning-block-sync
|
|
|
|
RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rest-client
|
|
|
|
RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rpc-client
|
|
|
|
RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rpc-client,rest-client
|
|
|
|
RUSTFLAGS="-C link-dead-code" cargo test --verbose --color always --features rpc-client,rest-client,tokio
|
2020-04-21 12:24:39 +02:00
|
|
|
- name: Install deps for kcov
|
|
|
|
if: matrix.coverage
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev
|
|
|
|
- name: Install kcov
|
|
|
|
if: matrix.coverage
|
|
|
|
run: |
|
|
|
|
wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz
|
|
|
|
tar xzf master.tar.gz
|
|
|
|
cd kcov-master && mkdir build && cd build
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
make install DESTDIR=../../kcov-build
|
|
|
|
cd ../.. && rm -rf kcov-master master.tar.gz
|
|
|
|
- name: Generate coverage report
|
|
|
|
if: matrix.coverage
|
|
|
|
run: |
|
2021-01-26 23:17:01 +01:00
|
|
|
for file in target/debug/deps/lightning*; do
|
2020-04-21 12:24:39 +02:00
|
|
|
[ -x "${file}" ] || continue;
|
|
|
|
mkdir -p "target/cov/$(basename $file)";
|
|
|
|
./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file";
|
|
|
|
done
|
|
|
|
- name: Upload coverage
|
|
|
|
if: matrix.coverage
|
2022-04-05 19:32:54 +02:00
|
|
|
uses: codecov/codecov-action@v3
|
2020-04-21 12:24:39 +02:00
|
|
|
with:
|
2020-08-03 22:48:58 +02:00
|
|
|
# Could you use this to fake the coverage report for your PR? Sure.
|
|
|
|
# Will anyone be impressed by your amazing coverage? No
|
|
|
|
# Maybe if codecov wasn't broken we wouldn't need to do this...
|
|
|
|
token: f421b687-4dc2-4387-ac3d-dc3b2528af57
|
2020-04-21 12:24:39 +02:00
|
|
|
fail_ci_if_error: true
|
|
|
|
|
2021-02-15 22:49:44 +01:00
|
|
|
benchmark:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
TOOLCHAIN: nightly
|
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
2022-03-02 18:35:18 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-02-15 22:49:44 +01:00
|
|
|
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ env.TOOLCHAIN }}
|
|
|
|
override: true
|
|
|
|
profile: minimal
|
|
|
|
- name: Cache routing graph snapshot
|
|
|
|
id: cache-graph
|
2022-03-21 18:38:00 +01:00
|
|
|
uses: actions/cache@v3
|
2021-02-15 22:49:44 +01:00
|
|
|
with:
|
2021-06-01 04:02:40 +02:00
|
|
|
path: lightning/net_graph-2021-05-31.bin
|
|
|
|
key: ldk-net_graph-v0.0.15-2021-05-31.bin
|
2021-02-15 22:49:44 +01:00
|
|
|
- name: Fetch routing graph snapshot
|
|
|
|
if: steps.cache-graph.outputs.cache-hit != 'true'
|
|
|
|
run: |
|
2021-11-03 18:50:08 +01:00
|
|
|
curl --verbose -L -o lightning/net_graph-2021-05-31.bin https://bitcoin.ninja/ldk-net_graph-v0.0.15-2021-05-31.bin
|
|
|
|
echo "Sha sum: $(sha256sum lightning/net_graph-2021-05-31.bin | awk '{ print $1 }')"
|
|
|
|
if [ "$(sha256sum lightning/net_graph-2021-05-31.bin | awk '{ print $1 }')" != "${EXPECTED_ROUTING_GRAPH_SNAPSHOT_SHASUM}" ]; then
|
2021-02-15 22:49:44 +01:00
|
|
|
echo "Bad hash"
|
|
|
|
exit 1
|
|
|
|
fi
|
2021-11-03 18:50:08 +01:00
|
|
|
env:
|
|
|
|
EXPECTED_ROUTING_GRAPH_SNAPSHOT_SHASUM: 05a5361278f68ee2afd086cc04a1f927a63924be451f3221d380533acfacc303
|
|
|
|
- name: Fetch rapid graph sync reference input
|
|
|
|
run: |
|
2022-07-25 20:35:51 +02:00
|
|
|
curl --verbose -L -o lightning-rapid-gossip-sync/res/full_graph.lngossip https://bitcoin.ninja/ldk-compressed_graph-285cb27df79-2022-07-21.bin
|
2021-11-03 18:50:08 +01:00
|
|
|
echo "Sha sum: $(sha256sum lightning-rapid-gossip-sync/res/full_graph.lngossip | awk '{ print $1 }')"
|
|
|
|
if [ "$(sha256sum lightning-rapid-gossip-sync/res/full_graph.lngossip | awk '{ print $1 }')" != "${EXPECTED_RAPID_GOSSIP_SHASUM}" ]; then
|
|
|
|
echo "Bad hash"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
env:
|
2022-07-25 20:35:51 +02:00
|
|
|
EXPECTED_RAPID_GOSSIP_SHASUM: e0f5d11641c11896d7af3a2246d3d6c3f1720b7d2d17aab321ecce82e6b7deb8
|
2021-03-27 02:50:54 +01:00
|
|
|
- name: Test with Network Graph on Rust ${{ matrix.toolchain }}
|
|
|
|
run: |
|
|
|
|
cd lightning
|
|
|
|
RUSTFLAGS="--cfg=require_route_graph_test" cargo test
|
2021-05-27 06:04:20 +02:00
|
|
|
RUSTFLAGS="--cfg=require_route_graph_test" cargo test --features hashbrown
|
2021-03-27 02:50:54 +01:00
|
|
|
cd ..
|
2021-02-15 22:49:44 +01:00
|
|
|
- name: Run benchmarks on Rust ${{ matrix.toolchain }}
|
|
|
|
run: |
|
2022-02-10 22:13:19 +01:00
|
|
|
cargo bench --features _bench_unstable
|
2021-02-15 22:49:44 +01:00
|
|
|
|
2020-09-15 20:39:44 +02:00
|
|
|
check_commits:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
2022-03-27 19:11:22 +02:00
|
|
|
TOOLCHAIN: 1.57.0
|
2020-09-15 20:39:44 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
2022-03-02 18:35:18 +01:00
|
|
|
uses: actions/checkout@v3
|
2020-09-15 20:39:44 +02:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ env.TOOLCHAIN }}
|
|
|
|
override: true
|
|
|
|
profile: minimal
|
|
|
|
- name: Fetch full tree and rebase on upstream
|
|
|
|
run: |
|
2021-12-27 04:53:16 +01:00
|
|
|
git remote add upstream https://github.com/lightningdevkit/rust-lightning
|
2020-09-15 20:39:44 +02:00
|
|
|
git fetch upstream
|
2020-10-02 22:32:32 +02:00
|
|
|
export GIT_COMMITTER_EMAIL="rl-ci@example.com"
|
|
|
|
export GIT_COMMITTER_NAME="RL CI"
|
2020-09-15 20:39:44 +02:00
|
|
|
git rebase upstream/main
|
|
|
|
- name: For each commit, run cargo check (including in fuzz)
|
|
|
|
run: ci/check-each-commit.sh upstream/main
|
|
|
|
|
2022-06-10 10:45:57 +02:00
|
|
|
check_release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
TOOLCHAIN: stable
|
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ env.TOOLCHAIN }}
|
|
|
|
override: true
|
|
|
|
profile: minimal
|
|
|
|
- name: Run cargo check for release build.
|
|
|
|
run: |
|
|
|
|
cargo check --release
|
|
|
|
cargo check --no-default-features --features=no-std --release
|
|
|
|
cargo doc --release
|
|
|
|
|
2020-04-21 12:24:39 +02:00
|
|
|
fuzz:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
TOOLCHAIN: stable
|
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
2022-03-02 18:35:18 +01:00
|
|
|
uses: actions/checkout@v3
|
2022-02-25 23:09:30 +01:00
|
|
|
- name: Install Rust 1.58 toolchain
|
2020-04-21 12:24:39 +02:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2022-02-25 23:09:30 +01:00
|
|
|
toolchain: 1.58
|
2020-04-21 12:24:39 +02:00
|
|
|
override: true
|
|
|
|
profile: minimal
|
|
|
|
- name: Install dependencies for honggfuzz
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install build-essential binutils-dev libunwind-dev
|
2020-04-24 20:22:31 +02:00
|
|
|
- name: Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
|
2021-02-19 21:07:28 +01:00
|
|
|
run: cd fuzz && RUSTFLAGS="--cfg=fuzzing" cargo test --verbose --color always
|
2020-04-24 20:22:31 +02:00
|
|
|
- name: Run fuzzers
|
2021-04-07 19:04:29 +02:00
|
|
|
run: cd fuzz && ./ci-fuzz.sh && cd ..
|
|
|
|
- name: Run lightning-invoice fuzzers
|
|
|
|
run: cd lightning-invoice/fuzz && RUSTFLAGS="--cfg=fuzzing" cargo test --verbose && ./ci-fuzz.sh
|
2020-05-11 02:09:42 +02:00
|
|
|
|
2020-10-08 19:47:49 +02:00
|
|
|
linting:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
2021-12-16 03:10:09 +01:00
|
|
|
TOOLCHAIN: 1.47.0
|
2020-10-08 19:47:49 +02:00
|
|
|
steps:
|
|
|
|
- name: Checkout source code
|
2022-03-02 18:35:18 +01:00
|
|
|
uses: actions/checkout@v3
|
2020-10-08 19:47:49 +02:00
|
|
|
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ env.TOOLCHAIN }}
|
|
|
|
override: true
|
|
|
|
profile: minimal
|
|
|
|
- name: Install clippy
|
|
|
|
run: |
|
|
|
|
rustup component add clippy
|
|
|
|
- name: Run default clippy linting
|
|
|
|
run: |
|
2021-08-02 17:30:01 +02:00
|
|
|
cargo clippy -- -Aclippy::erasing_op -Aclippy::never_loop -Aclippy::if_same_then_else -Dclippy::try_err
|