Skip to content

attest test

attest test #735

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
# Make sure CI fails on all warnings, including Clippy lints
RUSTFLAGS: "-Dwarnings"
jobs:
fmt:
name: Code Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: "rustfmt --check"
run: |
if ! rustfmt --check --edition 2024 $(git ls-files '*.rs'); then
printf "Please run \`rustfmt --edition 2024 \$(git ls-files '*.rs')\` to fix rustfmt errors.\nSee CONTRIBUTING.md for more details.\n" >&2
exit 1
fi
#clippy_check:
# name: Linter Check
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/[email protected]
# with:
# components: clippy
# - name: Install Protocol Buffers Compiler
# run: sudo apt-get install -y protobuf-compiler
# - name: Set PROTOC Environment Variable
# run: export PROTOC=/path/to/protoc
# - name: Run Clippy
# run: cargo clippy
# - name: Run Clippy
# run: cargo clippy --package holo-tools
#tests_and_coverage_report:
# name: Tests and Coverage Report
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/[email protected]
# - name: Install cargo-llvm-cov
# uses: taiki-e/install-action@cargo-llvm-cov
# - name: Generate code coverage
# run: cargo llvm-cov --all-features --codecov --output-path codecov.json -p holo-bfd -p holo-bgp -p holo-isis -p holo-ldp -p holo-ospf -p holo-rip -p holo-vrrp
# - name: Upload to Codecov
# uses: codecov/codecov-action@v4
# if: github.event_name != 'pull_request'
# with:
# files: ./lcov.info
# fail_ci_if_error: false
# token: ${{ secrets.CODECOV_TOKEN }}
#tests_arm:
# name: Tests (Arm64)
# runs-on: ubuntu-24.04-arm
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/[email protected]
# - name: Run tests
# run: cargo test --all-features -p holo-bfd -p holo-bgp -p holo-isis -p holo-ldp -p holo-ospf -p holo-rip -p holo-vrrp
#fuzz-build-check:
# name: Check fuzz targets build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# # cargo-fuzz requires nightly Rust due to LLVM sanitizer support
# - uses: dtolnay/rust-toolchain@nightly
# - name: Install cargo-fuzz
# run: cargo install cargo-fuzz
# - name: Check fuzz targets
# run: cargo fuzz check
#bench-build-check:
# name: Check benchmark builds
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: dtolnay/[email protected]
# - name: Check benchmark builds
# run: cargo bench --no-run -p holo-bgp -p holo-ldp -p holo-ospf
docker-build-holod:
uses: .github/workflows/docker-build-and-attest.yml@attest-build-provenance-reusable

Check failure on line 93 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

invalid value workflow reference: references to workflows must be prefixed with format 'owner/repository/' or './' for local workflows
with:
image-name: holod
dockerfile: docker/Dockerfile.holod
permissions:
id-token: write
attestations: write
packages: write
docker-build-holo-bundle:
needs: docker-build-holod
uses: .github/workflows/docker-build-and-attest.yml@attest-build-provenance-reusable
with:
image-name: holo-bundle
dockerfile: docker/Dockerfile.holo-bundle
permissions:
id-token: write
attestations: write
packages: write