X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=.github%2Fworkflows%2Fbuild.yml;h=065a3241a8e324cd09db7ace5489d03d20ec88d5;hb=df778b605a28580905cb5ca63b3ec8bbe99afc2f;hp=70cc2e48efb77d7e5efcd9f3dfb3d617831c1bc4;hpb=b0e9b0107b5b8d2dd1108c714d3befc984625a39;p=rust-lightning diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 70cc2e48..065a3241 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,7 @@ jobs: build: strategy: matrix: + platform: [ ubuntu-latest ] toolchain: [ stable, beta, # 1.30.0 is MSRV for Rust-Lightning @@ -17,12 +18,18 @@ jobs: include: - toolchain: stable build-net-tokio: true + - toolchain: stable + platform: macos-latest + build-net-tokio: true + - toolchain: stable + platform: windows-latest + build-net-tokio: true - toolchain: beta build-net-tokio: true - toolchain: 1.39.0 build-net-tokio: true coverage: true - runs-on: ubuntu-latest + runs-on: ${{ matrix.platform }} steps: - name: Checkout source code uses: actions/checkout@v2 @@ -102,6 +109,8 @@ jobs: run: | git remote add upstream https://github.com/rust-bitcoin/rust-lightning git fetch upstream + export GIT_COMMITTER_EMAIL="rl-ci@example.com" + export GIT_COMMITTER_NAME="RL CI" git rebase upstream/main - name: For each commit, run cargo check (including in fuzz) run: ci/check-each-commit.sh upstream/main @@ -175,3 +184,23 @@ jobs: [ "$(diff lightning-c-bindings/include/lightningpp.hpp.sorted lightning-c-bindings/include/lightningpp.hpp.new.sorted)" != "" ] && exit 3 git diff --exit-code fi + + linting: + runs-on: ubuntu-latest + env: + TOOLCHAIN: 1.39.0 + steps: + - name: Checkout source code + uses: actions/checkout@v2 + - 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: | + cargo clippy -- -Aclippy::erasing_op -Aclippy::never_loop -Aclippy::if_same_then_else