diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0f8dc8..4e1e7cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,25 +18,3 @@ jobs: - run: cargo fmt --all -- --check - run: cargo clippy --workspace --all-targets -- -D warnings - run: cargo test --workspace - - soothfast: - # the bot's own merge must not regenerate again - if: github.event_name == 'pull_request' || !endsWith(github.actor, '[bot]') - runs-on: ubuntu-latest - environment: soothfast-bot - permissions: - contents: read - pull-requests: write - id-token: write - concurrency: - group: soothfast-${{ github.ref }} - cancel-in-progress: true - steps: - - uses: actions/checkout@v5 - with: - persist-credentials: false - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - - uses: Verdenroz/soothfast@c115134ae4369862836206660610ebf0a1a51eb3 # v0.5.3 - with: - changelog-packages: scry-core scry-server diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 992050b..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: docs - -on: - push: - branches: [main] - -permissions: - contents: read - -concurrency: - group: pages - cancel-in-progress: true - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - uses: dtolnay/rust-toolchain@stable - - uses: Swatinem/rust-cache@v2 - # callgrind fallback for PMU-less runners - - run: sudo apt-get update -qq && sudo apt-get install -y -qq valgrind - # install only, pinned to Cargo.lock - - uses: Verdenroz/soothfast@c115134ae4369862836206660610ebf0a1a51eb3 # v0.5.3 - with: - gate: "false" - changelog: "false" - - run: cargo soothfast measure -p scry-core --save-baseline base - - run: cargo soothfast docs check - - run: cargo soothfast docs build --baseline base - - uses: actions/upload-pages-artifact@v3 - with: - path: site - - deploy: - needs: build - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - permissions: - pages: write - id-token: write - steps: - - id: deployment - uses: actions/deploy-pages@v4 diff --git a/.github/workflows/soothfast.yml b/.github/workflows/soothfast.yml index 4a2946d..6878532 100644 --- a/.github/workflows/soothfast.yml +++ b/.github/workflows/soothfast.yml @@ -5,6 +5,8 @@ on: pull_request: push: branches: [main] + schedule: + - cron: "*/30 * * * *" permissions: contents: read @@ -21,6 +23,14 @@ jobs: contents: read pull-requests: write id-token: write - uses: Verdenroz/soothfast/.github/workflows/run.yml@c115134ae4369862836206660610ebf0a1a51eb3 # v0.5.3 + uses: Verdenroz/soothfast/.github/workflows/run.yml@2ae46646f150426bb2c18a8c27ff8e75c7e452c5 with: - soothfast_ref: "c115134ae4369862836206660610ebf0a1a51eb3" + soothfast_ref: "2ae46646f150426bb2c18a8c27ff8e75c7e452c5" + bot: true + pages: + needs: soothfast + if: github.event_name == 'push' + permissions: + pages: write + id-token: write + uses: Verdenroz/soothfast/.github/workflows/pages.yml@2ae46646f150426bb2c18a8c27ff8e75c7e452c5 diff --git a/soothfast.toml b/soothfast.toml index bc727eb..373dd78 100644 --- a/soothfast.toml +++ b/soothfast.toml @@ -23,3 +23,14 @@ walltime = "hard" [docs] package = ["scry"] + +# The crates whose API the changelog diffs; neither has a bench target. +[changelog] +packages = ["scry-core", "scry-server"] + +[bot] +labels = true + +# Publishes the docs site from the soothfast workflow on a push to main. +[ci] +pages = true