Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .github/workflows/check-crypto-providers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ jobs:
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
shared-key: default
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Run crypto provider check
run: ./scripts/check_crypto_providers.sh
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
shared-key: coverage
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Generate code coverage (including doc tests)
env:
# Override rust-toolchain.toml so cargo-llvm-cov runs on the dated
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
shared-key: fuzz
save-if: ${{ github.ref == 'refs/heads/main' }}
- env:
# Override rust-toolchain.toml so cargo-bolero runs on the dated nightly.
RUSTUP_TOOLCHAIN: ${{ steps.nightly-version.outputs.version }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ jobs:
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
shared-key: lint
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Run rustfmt
env:
FMT_PACKAGES: ${{ needs.setup.outputs.fmt-packages }}
Expand Down Expand Up @@ -139,6 +141,8 @@ jobs:
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
shared-key: all-features
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Run clippy on ${{ matrix.platform }} ${{ matrix.rust_version }}
shell: bash
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/miri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
shared-key: miri
save-if: ${{ github.ref == 'refs/heads/main' }}
- env:
# Override rust-toolchain.toml so miri runs on the dated nightly
# (miri is nightly-only) instead of the workspace MSRV.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-metadata-docs-and-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ jobs:
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
with:
cache-targets: true
shared-key: default
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: dtolnay/rust-toolchain@stable
- name: Check missing docs
id: missing-docs
Expand Down Expand Up @@ -278,6 +280,8 @@ jobs:
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
with:
cache-targets: true
shared-key: default
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/cache-cargo-install-action@7447f04c51f2ba27ca35e7f1e28fab848c5b3ba7 # 2.3.1
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-title-semver-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:
uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # 2.8.1
with:
cache-targets: true
shared-key: default
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Install dependencies
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-proposal-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ jobs:
- uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 # v2.8.1
with:
cache-targets: true
shared-key: default
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ steps.nightly-version.outputs.version }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-ffi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ jobs:
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
shared-key: release
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: "Generate profiling FFI"
shell: bash
env:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ jobs:
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
shared-key: all-features
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: "Remove nextest CI report"
shell: bash
run: rm -rf target/nextest/ci/junit.xml
Expand Down Expand Up @@ -295,6 +297,8 @@ jobs:
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
shared-key: default
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Build CentOS 7 Docker image
run: docker build -t libdatadog-centos7 -f tools/docker/Dockerfile.centos .
- name: "cargo nextest run (centos7)"
Expand Down Expand Up @@ -377,6 +381,8 @@ jobs:
with:
cache-targets: true
cache-bin: true
shared-key: default
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # 3.10.0
- name: Pre-fetch dependencies (requires network/certs on the runner)
Expand Down Expand Up @@ -426,6 +432,8 @@ jobs:
with:
cache-targets: true
cache-bin: true
shared-key: wasm
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: "cargo check -p libdd-data-pipeline --target wasm32-unknown-unknown --no-default-features"
run: cargo check -p libdd-data-pipeline --target wasm32-unknown-unknown --no-default-features
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
with:
cache-targets: true
cache-bin: true
shared-key: default
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Regenerate bindings
# `LIBDD_PROFILING_HEAP_SAMPLER_REGEN=1` rewrites `src/generated/*`
# in-place via bindgen. If the committed files were stale the
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/verify-proto-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ jobs:
with:
cache-targets: true # cache build artifacts
cache-bin: true # cache the ~/.cargo/bin directory
shared-key: default
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: diff pb.rs
working-directory: libdd-trace-protobuf
run: |
Expand Down
Loading