Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
456eb85
update nwaku vendor to current master
Ivansete-status Oct 1, 2025
4e03be3
temporary bump vendor
Ivansete-status Oct 1, 2025
94e5a65
bump nwaku
Ivansete-status Oct 1, 2025
6e38c18
adapt code to latest nwaku
Ivansete-status Oct 1, 2025
399a39b
github use stable generic macos instead of intel toolchain
Ivansete-status Oct 1, 2025
52aea7c
force cc linker to avoid gh issues
Ivansete-status Oct 2, 2025
0866532
ci set profile to default to avoid lib issues
Ivansete-status Oct 2, 2025
5cf0aa3
try to fix ci __rust_probestack issue
Ivansete-status Oct 5, 2025
cf890bd
trying to fix stdsimd
Ivansete-status Oct 5, 2025
ff5841f
fix install grcov
Ivansete-status Oct 5, 2025
b8fa9a1
install cargo-binstall tool in codecov.yml
Ivansete-status Oct 5, 2025
0e5f707
avoid go
Ivansete-status Oct 5, 2025
8b2a010
fix grcov
Ivansete-status Oct 5, 2025
1ad6e01
install cargo-binstall
Ivansete-status Oct 5, 2025
8f65076
codecov.yml change checkout and build
Ivansete-status Oct 5, 2025
0367f9e
set a fresh new codecov action github workflow
Ivansete-status Oct 5, 2025
0d3a7d1
bump cargo.lock
Ivansete-status Oct 6, 2025
592b312
cargo.lock syn change
Ivansete-status Oct 6, 2025
ba67be7
codecov.yml avoid cache
Ivansete-status Oct 6, 2025
3d973ff
use stable rust action codecov.yml
Ivansete-status Oct 6, 2025
aef10b1
codecov.yml install deps
Ivansete-status Oct 6, 2025
c084a85
codecov enforce linker cc
Ivansete-status Oct 6, 2025
a68b4fd
codecov try to fix __rust_probestack
Ivansete-status Oct 6, 2025
4086fbe
codecov use stable
Ivansete-status Oct 6, 2025
20c1f89
codecov not test
Ivansete-status Oct 6, 2025
ffc754a
rm instrument-coverage
Ivansete-status Oct 6, 2025
e59d74b
restore back codecov.yml
Ivansete-status Oct 7, 2025
7785c20
codecov add some echo logs
Ivansete-status Oct 7, 2025
fd68bc3
avoid the use of --all-features running tests
Ivansete-status Oct 7, 2025
cfc3535
codecov add x86_64-unknown-linux-gnu
Ivansete-status Oct 7, 2025
a7c7070
use stable toolchain in codecov.yml
Ivansete-status Oct 8, 2025
7c0d258
codecov no-stack-check
Ivansete-status Oct 8, 2025
1cca1b3
rm extra double quote
Ivansete-status Oct 8, 2025
8012172
refactor codecov.yml
Ivansete-status Oct 8, 2025
c3d3f52
bump waku-sys nwaku vendor
Ivansete-status Oct 8, 2025
6f9310f
use rln 0.8.0
Ivansete-status Oct 9, 2025
c5401bc
install dependencies
Ivansete-status Oct 9, 2025
6db6836
use rln 0.8.0 in waku-bindings/Cargo.toml
Ivansete-status Oct 9, 2025
c070a24
bump waku-sys/vendor
Ivansete-status Oct 10, 2025
2bad1f0
fine tune codecov tests
Ivansete-status Oct 10, 2025
19484cf
simplify codecov.yml
Ivansete-status Oct 10, 2025
0d9fbd1
upgrade codecov-action to v4
Ivansete-status Oct 10, 2025
1ab261c
disable codecov
Ivansete-status Oct 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 36 additions & 27 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,55 @@
name: Codecov

on:
pull_request:
push:
branches:
- master

name: Codecov

jobs:
test:
name: Test
env:
RUSTFLAGS: -C instrument-coverage
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-C instrument-coverage -C force-frame-pointers=yes -C no-stack-check"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

- name: Checkout submodules
run: git submodule update --init --recursive
- uses: actions/setup-go@v3 # we need go to build go-waku
with:
go-version: '1.20'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: llvm-tools-preview
- uses: actions-rs/cargo@v1
continue-on-error: true
- run: |
cargo install grcov;

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2

- name: Install llvm-tools and grcov
run: |
rustup component add llvm-tools-preview
cargo install grcov

- name: Install dependencies
run: |
sudo apt-get install -y cmake ninja-build binaryen;
cargo install wasm-pack --version=0.13.1;

- name: Clean previous builds
run: cargo clean

- name: Run tests and generate coverage report
run: |
cargo test --all-features;
cargo test discv5_echo -- --ignored;
cargo test default_echo -- --ignored;
mkdir /tmp/cov;
grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov;
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: /tmp/cov/
name: waku-bindings-codecov
fail_ci_if_error: true

# mkdir /tmp/cov;
# grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov;

# - uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# files: /tmp/cov/tests.lcov
# name: waku-bindings-codecov
# fail_ci_if_error: true
27 changes: 22 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,22 @@ on:

name: CI

# Make sure cc linker is used on Linux/macOS
x-setup-linker: &setup-linker
- name: Setup linker
run: |
mkdir -p .cargo
cat > .cargo/config.toml <<EOF
[target.x86_64-unknown-linux-gnu]
linker = "cc"

[target.aarch64-apple-darwin]
linker = "cc"

[target.x86_64-apple-darwin]
linker = "cc"
EOF

jobs:
check:
name: Check
Expand All @@ -19,7 +35,7 @@ jobs:
#- os: windows-latest
# toolchain: stable-x86_64-pc-windows-gnu
- os: macos-latest
toolchain: stable-x86_64-apple-darwin
toolchain: stable
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -29,7 +45,7 @@ jobs:
run: git submodule update --init --recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
profile: default
toolchain: ${{ matrix.toolchain }}
default: true
override: true
Expand All @@ -48,7 +64,7 @@ jobs:
#- os: windows-latest
# toolchain: stable-x86_64-pc-windows-gnu
- os: macos-latest
toolchain: stable-x86_64-apple-darwin
toolchain: stable
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -58,10 +74,11 @@ jobs:
run: git submodule update --init --recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
profile: default
toolchain: ${{ matrix.toolchain }}
default: true
override: true
- *setup-linker
- uses: actions-rs/cargo@v1
continue-on-error: false
with:
Expand All @@ -82,7 +99,7 @@ jobs:
run: git submodule update --init --recursive
- uses: actions-rs/toolchain@v1
with:
profile: minimal
profile: default
toolchain: stable
override: true
components: rustfmt, clippy
Expand Down
Loading
Loading