Skip to content

Commit 3ca8384

Browse files
committed
coverage
1 parent 02750ec commit 3ca8384

6 files changed

Lines changed: 35 additions & 17 deletions

File tree

.cargo/config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build]
2+
target-dir = ".build"
3+
4+
[profile.test-cover]
5+
inherits = "test"
6+
incremental = false

.github/workflows/verify.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,50 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Check out repo and build scripts
20-
uses: actions/checkout@v3
21-
with:
22-
submodules: recursive
20+
uses: actions/checkout@v4
2321
- name: Run sccache
24-
uses: mozilla-actions/sccache-action@v0.0.3
22+
uses: mozilla-actions/sccache-action@v0.0.7
2523
- name: Build
26-
run: cargo build
24+
run: make build
2725

2826
lint:
2927
runs-on: ubuntu-latest
3028
steps:
3129
- name: Check out repo and build scripts
32-
uses: actions/checkout@v3
33-
with:
34-
submodules: recursive
30+
uses: actions/checkout@v4
3531
- name: Run sccache
36-
uses: mozilla-actions/sccache-action@v0.0.3
32+
uses: mozilla-actions/sccache-action@v0.0.7
3733
- name: rustfmt nightly
3834
run: |
3935
rustup toolchain install nightly-x86_64-unknown-linux-gnu
4036
rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu
4137
- name: Install Python
4238
uses: actions/setup-python@v5
4339
with:
44-
python-version: "3.11"
45-
- name: Install poetry
46-
uses: snok/install-poetry@v1
40+
python-version: "3.13"
41+
- name: Install pre-commit
42+
run: pip install pre-commit
4743
- name: Run pre-commit
48-
uses: pre-commit/action@v3.0.1
44+
run: make lint
4945

5046
test:
5147
runs-on: ubuntu-latest
5248
steps:
5349
- name: Check out repo and build scripts
54-
uses: actions/checkout@v3
50+
uses: actions/checkout@v4
5551
with:
5652
submodules: recursive
5753
- name: Run sccache
58-
uses: mozilla-actions/sccache-action@v0.0.3
54+
uses: mozilla-actions/sccache-action@v0.0.7
55+
- name: Install grcov
56+
run: cargo install grcov
57+
- name: Add llvm-tools
58+
run: rustup component add llvm-tools-preview
5959
- name: Test
60-
run: cargo test
60+
run: make test
61+
- name: Compute coverage
62+
run: make cover
63+
- name: Upload coverage
64+
uses: codecov/codecov-action@v5
65+
with:
66+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/target
1+
.build

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "build"]
2+
path = build
3+
url = git@github.com:acrlabs/build-scripts

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include build/base.mk
2+
include build/rust.mk

build

Submodule build added at 19476ee

0 commit comments

Comments
 (0)