Skip to content

Commit

Permalink
🚧 temp disable other jobs for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed May 23, 2022
1 parent 7420417 commit 15c8d39
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 182 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/cargo-audit.yml

This file was deleted.

324 changes: 162 additions & 162 deletions .github/workflows/ci.yml
Expand Up @@ -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
Expand Down

0 comments on commit 15c8d39

Please sign in to comment.