mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-12 15:49:22 -08:00
This commits changes the CI for dependabot PRs such that initially, only the exemptions for cargo vet are regenerated and pushed to the PR. Only after that, all other workflows are triggered. This ensures that the CI result for dependabot PRs is properly presented on github.
46 lines
1.6 KiB
YAML
46 lines
1.6 KiB
YAML
name: Regressions
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
workflow_run:
|
|
workflows: [Regenerate cargo-vet exemptions for dependabot-PRs]
|
|
types:
|
|
- completed
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
checks: write
|
|
contents: read
|
|
|
|
jobs:
|
|
multi-peer:
|
|
# Only run this for dependabot PRs if it's triggered by the workflow to regenerate cargo-vet exemptions
|
|
if: ${{ github.actor != 'dependabot[bot]' || github.event_name == 'workflow_run' }}
|
|
runs-on: ubicloud-standard-2-ubuntu-2204
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: cargo build --bin rosenpass --release
|
|
- run: python misc/generate_configs.py
|
|
- run: chmod +x .ci/run-regression.sh
|
|
- run: .ci/run-regression.sh 100 20
|
|
- run: |
|
|
[ $(ls -1 output/ate/out | wc -l) -eq 100 ]
|
|
|
|
boot-race:
|
|
# Only run this for dependabot PRs if it's triggered by the workflow to regenerate cargo-vet exemptions
|
|
if: ${{ github.actor != 'dependabot[bot]' || github.event_name == 'workflow_run' }}
|
|
runs-on: ubicloud-standard-2-ubuntu-2204
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: cargo build --bin rosenpass --release
|
|
- run: chmod +x .ci/boot_race/run.sh
|
|
- run: cargo run --release --bin rosenpass gen-keys .ci/boot_race/a.toml
|
|
- run: cargo run --release --bin rosenpass gen-keys .ci/boot_race/b.toml
|
|
- run: .ci/boot_race/run.sh 5 2 .ci/boot_race/a.toml .ci/boot_race/b.toml
|
|
- run: .ci/boot_race/run.sh 5 1 .ci/boot_race/a.toml .ci/boot_race/b.toml
|
|
- run: .ci/boot_race/run.sh 5 0 .ci/boot_race/a.toml .ci/boot_race/b.toml
|