初始化 Panda RPKI v0.1.0 开源候选版本
This commit is contained in:
32
.github/workflows/ci.yml
vendored
Normal file
32
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
rust:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
- uses: dtolnay/rust-toolchain@6d653ac52d5f748757700b3b0ec16abf11083d92
|
||||
with:
|
||||
toolchain: 1.92.0
|
||||
components: rustfmt, clippy
|
||||
- run: sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential clang libclang-dev pkg-config python3-cryptography openssl
|
||||
- run: cargo fmt --all --check
|
||||
- run: cargo check --locked --no-default-features
|
||||
- run: cargo test --locked
|
||||
- run: cargo clippy --locked --all-targets -- -D warnings
|
||||
- run: cargo build --locked --release
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
- run: sudo apt-get update && sudo apt-get install -y --no-install-recommends python3-cryptography openssl
|
||||
- run: docker build -f docker/Dockerfile -t panda-rpki:ci .
|
||||
- run: docker run --rm panda-rpki:ci --help
|
||||
- run: bash tests/synthetic_docker_e2e.sh
|
||||
Reference in New Issue
Block a user