From 15c8d3920b8f5fced6ff8d9e000cd8cab450a703 Mon Sep 17 00:00:00 2001 From: chad Date: Mon, 23 May 2022 16:00:14 -0500 Subject: [PATCH] :construction: temp disable other jobs for testing --- .github/workflows/cargo-audit.yml | 20 -- .github/workflows/ci.yml | 324 +++++++++++++++--------------- 2 files changed, 162 insertions(+), 182 deletions(-) delete mode 100644 .github/workflows/cargo-audit.yml diff --git a/.github/workflows/cargo-audit.yml b/.github/workflows/cargo-audit.yml deleted file mode 100644 index 0a39eb0dc96..00000000000 --- a/.github/workflows/cargo-audit.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: cargo audit -on: - schedule: - - cron: '0 0 * * *' - push: - paths: - - '**/Cargo.toml' - - '**/Cargo.lock' - pull_request: - paths: - - '**/Cargo.toml' - - '**/Cargo.lock' -jobs: - audit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/audit-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f808955424b..afc64b1539e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,171 +7,171 @@ on: - master jobs: - test-desktop: - name: Build and test - runs-on: ubuntu-latest - strategy: - matrix: - args: [ - "--no-default-features", - "--all-features", - "--benches --all-features", - ] - steps: - - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v3 - - - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # v1.4.0 - with: - key: ${{ matrix.args }} - - - run: cargo test --workspace ${{ matrix.args }} - - test-wasm: - name: Build on WASM - runs-on: ubuntu-latest - strategy: - matrix: - toolchain: [ - wasm32-unknown-emscripten, - wasm32-wasi - ] - include: - - toolchain: wasm32-unknown-unknown - args: "--features wasm-bindgen" - env: - CC: clang-11 - defaults: - run: - shell: bash - steps: - - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v3 - - - name: Install Rust ${{ matrix.toolchain }} - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 - with: - toolchain: stable - target: ${{ matrix.toolchain }} - override: true + # test-desktop: + # name: Build and test + # runs-on: ubuntu-latest + # strategy: + # matrix: + # args: [ + # "--no-default-features", + # "--all-features", + # "--benches --all-features", + # ] + # steps: + + # - name: Cancel Previous Runs + # uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 + # with: + # access_token: ${{ github.token }} + + # - uses: actions/checkout@v3 + + # - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # v1.4.0 + # with: + # key: ${{ matrix.args }} + + # - run: cargo test --workspace ${{ matrix.args }} + + # test-wasm: + # name: Build on WASM + # runs-on: ubuntu-latest + # strategy: + # matrix: + # toolchain: [ + # wasm32-unknown-emscripten, + # wasm32-wasi + # ] + # include: + # - toolchain: wasm32-unknown-unknown + # args: "--features wasm-bindgen" + # env: + # CC: clang-11 + # defaults: + # run: + # shell: bash + # steps: + + # - name: Cancel Previous Runs + # uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 + # with: + # access_token: ${{ github.token }} + + # - uses: actions/checkout@v3 + + # - name: Install Rust ${{ matrix.toolchain }} + # uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 + # with: + # toolchain: stable + # target: ${{ matrix.toolchain }} + # override: true + + # - name: Install a recent version of clang + # run: | + # sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" + + # - name: Install CMake + # run: sudo apt-get install -y cmake + + # - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # v1.4.0 + # with: + # key: ${{ matrix.toolchain }} + + # - name: Build on ${{ matrix.toolchain }} + # # TODO: also run `cargo test` + # # TODO: ideally we would build `--workspace`, but not all crates compile for WASM + # run: cargo build --target=${{ matrix.toolchain }} ${{ matrix.args }} + + # check-rustdoc-links: + # name: Check rustdoc intra-doc links + # runs-on: ubuntu-latest + # steps: + + # - name: Cancel Previous Runs + # uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 + # with: + # access_token: ${{ github.token }} + + # - uses: actions/checkout@v3 + + # - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 + # with: + # profile: minimal + # toolchain: stable + # override: true + + # - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # v1.4.0 + + # - name: Check rustdoc links + # run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items --all-features + + # check-clippy: + # runs-on: ubuntu-latest + # steps: + + # - name: Cancel Previous Runs + # uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 + # with: + # access_token: ${{ github.token }} + + # - uses: actions/checkout@v3 + + # - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 + # with: + # profile: minimal + # toolchain: stable + # override: true + # components: clippy + + # - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # v1.4.0 + + # - name: Run cargo clippy + # uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3 + # with: + # command: custom-clippy # cargo alias to allow reuse of config locally + + # integration-test: + # name: Integration tests + # runs-on: ubuntu-latest + # steps: + + # - name: Cancel Previous Runs + # uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 + # with: + # access_token: ${{ github.token }} + + # - uses: actions/checkout@v3 + + # - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 + # with: + # profile: minimal + # toolchain: stable + # override: true + + # - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # v1.4.0 + + # - name: Run ipfs-kad example + # run: RUST_LOG=libp2p_swarm=debug,libp2p_kad=trace,libp2p_tcp=debug cargo run --example ipfs-kad + + # rustfmt: + # runs-on: ubuntu-latest + # steps: - - name: Install a recent version of clang - run: | - sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" + # - name: Cancel Previous Runs + # uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 + # with: + # access_token: ${{ github.token }} + + # - uses: actions/checkout@v3 - - name: Install CMake - run: sudo apt-get install -y cmake - - - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # v1.4.0 - with: - key: ${{ matrix.toolchain }} - - - name: Build on ${{ matrix.toolchain }} - # TODO: also run `cargo test` - # TODO: ideally we would build `--workspace`, but not all crates compile for WASM - run: cargo build --target=${{ matrix.toolchain }} ${{ matrix.args }} - - check-rustdoc-links: - name: Check rustdoc intra-doc links - runs-on: ubuntu-latest - steps: - - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 - with: - profile: minimal - toolchain: stable - override: true - - - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # v1.4.0 - - - name: Check rustdoc links - run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items --all-features - - check-clippy: - runs-on: ubuntu-latest - steps: - - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 - with: - profile: minimal - toolchain: stable - override: true - components: clippy - - - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # v1.4.0 - - - name: Run cargo clippy - uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3 - with: - command: custom-clippy # cargo alias to allow reuse of config locally - - integration-test: - name: Integration tests - runs-on: ubuntu-latest - steps: - - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 - with: - profile: minimal - toolchain: stable - override: true - - - uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # v1.4.0 - - - name: Run ipfs-kad example - run: RUST_LOG=libp2p_swarm=debug,libp2p_kad=trace,libp2p_tcp=debug cargo run --example ipfs-kad - - rustfmt: - runs-on: ubuntu-latest - steps: - - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # 0.9.1 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v3 - - - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 - with: - profile: minimal - toolchain: stable - override: true - components: rustfmt + # - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 + # with: + # profile: minimal + # toolchain: stable + # override: true + # components: rustfmt - - name: Check formatting - run: cargo fmt -- --check + # - name: Check formatting + # run: cargo fmt -- --check rustsemver: runs-on: ubuntu-latest