diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 5c4156c6ae..0000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,14 +0,0 @@ -version: 2 -updates: -- package-ecosystem: github-actions - directory: "/" - schedule: - interval: daily - timezone: Etc/UTC - open-pull-requests-limit: 10 - reviewers: - - str4d - assignees: - - str4d - labels: - - "A-CI" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b20e60c748..fecfc5872d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,25 +1,14 @@ name: CI checks -on: - merge_group: - pull_request: - push: - branches: - - main +on: [pull_request, push] jobs: test: - name: Test on ${{ matrix.os }} with ${{ matrix.feature_set }} features + name: Test on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: - feature_set: [basic, all] os: [ubuntu-latest] - include: - - feature_set: basic - features: batch,dev-graph,gadget-traces - - feature_set: all - features: batch,dev-graph,gadget-traces,multicore,test-dev-graph,thread-safe-region,sanity-checks,circuit-params steps: - uses: actions/checkout@v3 @@ -30,67 +19,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: --verbose --release --workspace --no-default-features --features "${{ matrix.features }}" - - build: - name: Build target ${{ matrix.target }} - runs-on: ubuntu-latest - strategy: - matrix: - target: - - wasm32-unknown-unknown - - wasm32-wasi - - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - override: false - - name: Add target - run: rustup target add ${{ matrix.target }} - - name: cargo build - uses: actions-rs/cargo@v1 - with: - command: build - args: --no-default-features --features batch,dev-graph,gadget-traces --target ${{ matrix.target }} - - bitrot: - name: Bitrot check - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - override: false - # Build benchmarks to prevent bitrot - - name: Build benchmarks - uses: actions-rs/cargo@v1 - with: - command: build - args: --benches --examples --all-features - - doc-links: - name: Intra-doc links - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - override: false - - name: cargo fetch - uses: actions-rs/cargo@v1 - with: - command: fetch - - # Ensure intra-documentation links all resolve correctly - # Requires #![deny(intra_doc_link_resolution_failure)] in crates. - - name: Check intra-doc links - uses: actions-rs/cargo@v1 - with: - command: doc - args: --all --document-private-items + args: --verbose --release --all --all-features example: name: Examples on ubuntu diff --git a/.github/workflows/lints-stable.yml b/.github/workflows/lints-stable.yml deleted file mode 100644 index 0add558c76..0000000000 --- a/.github/workflows/lints-stable.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Stable lints - -# We only run these lints on trial-merges of PRs to reduce noise. -on: pull_request - -jobs: - clippy: - name: Clippy (1.73.0) - timeout-minutes: 30 - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - components: clippy - override: false - - name: Run clippy - uses: actions-rs/clippy-check@v1 - with: - name: Clippy (1.73.0) - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features --all-targets -- -D warnings diff --git a/.github/workflows/trigger_proverbench_dispatch.yml b/.github/workflows/trigger_proverbench_dispatch.yml deleted file mode 100644 index a17380deb5..0000000000 --- a/.github/workflows/trigger_proverbench_dispatch.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Prover Bench on halo2 PR -on: - pull_request: - types: [labeled , ready_for_review] -jobs: - Prover-benches-via-repo-dispatch-from-halo2-fork: - if: ${{ github.event.label.name == 'benchmarks' }} - runs-on: ubuntu-latest - env: - GH_USER: ${{ github.actor }} - _TOKEN: ${{ secrets.BENCHMARKER }} - REVISION: ${{ github.event.pull_request.head.sha }} - REPO: ${{ github.event.repository.name }} - PR_NUMBER: ${{ github.event.number }} - steps: - - name: Install curl - run: | - sudo apt-get update - sudo apt-get install curl - - name: Send repo api call - run: | - curl \ - -X POST \ - -H "Accept: application/vnd.github.v3+json" \ - -u ZKEVMBOT:${{ env._TOKEN }} \ - https://api.github.com/repos/appliedzkp/zkevm-circuits/actions/workflows/ProverBenchFromHalo2.yml/dispatches \ - -d "{\"ref\":\"main\",\"inputs\":{\"halo2pr\":\"${{ env.PR_NUMBER }}\",\"revision\":\"${{ env.REVISION }}\",\"event-type\":\"halo2_wfdispatch\",\"ghuser\": \"${{ env.GH_USER }}\"}}"