From d102174b912e2375475ab5f9db0bb091306a9c36 Mon Sep 17 00:00:00 2001 From: danijelTxFusion Date: Mon, 2 Sep 2024 19:34:10 +0200 Subject: [PATCH] tigger pipeline --- .github/workflows/ci.yml | 137 ++++++++++++++++++++------------------- 1 file changed, 69 insertions(+), 68 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ea8e72e7..1c599eefe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,81 +2,82 @@ name: CI on: pull_request: -# merge_group: + types: [ opened, reopened, synchronize ] + merge_group: push: branches: - staging - trying - '!release-please--branches--**' -#concurrency: -# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} -# cancel-in-progress: true +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: -# changed_files: -# runs-on: ubuntu-latest -# name: Get changed files -# outputs: -# core: ${{ steps.changed-files.outputs.core_any_changed }} -# prover: ${{ steps.changed-files.outputs.prover_any_changed }} -# zk_toolbox: ${{ steps.changed-files.outputs.zk_toolbox_any_changed }} -# docs: ${{ steps.changed-files.outputs.docs_any_changed }} -# all: ${{ steps.changed-files.outputs.all_any_changed }} -# steps: -# - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 -# with: -# fetch-depth: 2 -# submodules: "recursive" -# -# - name: Get changed files -# id: changed-files -# uses: tj-actions/changed-files@v39 -# with: -# files_yaml: | -# prover: -# - 'prover/**' -# - '!prover/CHANGELOG.md' -# - '!prover/setup-data-cpu-keys.json' -# - '!prover/setup-data-gpu-keys.json' -# - '!prover/extract-setup-data-keys.sh' -# - 'docker/prover*/**' -# - '.github/workflows/build-prover-template.yml' -# - '.github/workflows/ci-prover-reusable.yml' -# - 'docker-compose-runner-nightly.yml' -# - '!**/*.md' -# - '!**/*.MD' -# core: -# - 'core/**' -# - '!core/CHANGELOG.md' -# - 'docker/contract-verifier/**' -# - 'docker/external-node/**' -# - 'docker/server/**' -# - '.github/workflows/build-core-template.yml' -# - '.github/workflows/build-contract-verifier-template.yml' -# - '.github/workflows/ci-core-reusable.yml' -# - '.github/workflows/ci-core-lint-reusable.yml' -# - 'Cargo.toml' -# - 'Cargo.lock' -# - '!**/*.md' -# - '!**/*.MD' -# - 'docker-compose.yml' -# zk_toolbox: -# - 'zk_toolbox/**' -# - '!**/*.md' -# - '!**/*.MD' -# docs: -# - '**/*.md' -# - '**/*.MD' -# - '.github/workflows/ci-docs-reusable.yml' -# all: -# - '.github/workflows/ci.yml' -# - 'bin/**' -# - 'etc/**' -# - 'contracts/**' -# - 'infrastructure/zk/**' -# - '!**/*.md' -# - '!**/*.MD' + changed_files: + runs-on: ubuntu-latest + name: Get changed files + outputs: + core: ${{ steps.changed-files.outputs.core_any_changed }} + prover: ${{ steps.changed-files.outputs.prover_any_changed }} + zk_toolbox: ${{ steps.changed-files.outputs.zk_toolbox_any_changed }} + docs: ${{ steps.changed-files.outputs.docs_any_changed }} + all: ${{ steps.changed-files.outputs.all_any_changed }} + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + with: + fetch-depth: 2 + submodules: "recursive" + + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v39 + with: + files_yaml: | + prover: + - 'prover/**' + - '!prover/CHANGELOG.md' + - '!prover/setup-data-cpu-keys.json' + - '!prover/setup-data-gpu-keys.json' + - '!prover/extract-setup-data-keys.sh' + - 'docker/prover*/**' + - '.github/workflows/build-prover-template.yml' + - '.github/workflows/ci-prover-reusable.yml' + - 'docker-compose-runner-nightly.yml' + - '!**/*.md' + - '!**/*.MD' + core: + - 'core/**' + - '!core/CHANGELOG.md' + - 'docker/contract-verifier/**' + - 'docker/external-node/**' + - 'docker/server/**' + - '.github/workflows/build-core-template.yml' + - '.github/workflows/build-contract-verifier-template.yml' + - '.github/workflows/ci-core-reusable.yml' + - '.github/workflows/ci-core-lint-reusable.yml' + - 'Cargo.toml' + - 'Cargo.lock' + - '!**/*.md' + - '!**/*.MD' + - 'docker-compose.yml' + zk_toolbox: + - 'zk_toolbox/**' + - '!**/*.md' + - '!**/*.MD' + docs: + - '**/*.md' + - '**/*.MD' + - '.github/workflows/ci-docs-reusable.yml' + all: + - '.github/workflows/ci.yml' + - 'bin/**' + - 'etc/**' + - 'contracts/**' + - 'infrastructure/zk/**' + - '!**/*.md' + - '!**/*.MD' # ci-for-core-lint: # name: CI for Core lint Components @@ -87,7 +88,7 @@ jobs: ci-for-core: name: CI for Core Components needs: changed_files -# if: ${{ (needs.changed_files.outputs.core == 'true' || needs.changed_files.outputs.all == 'true') && !contains(github.ref_name, 'release-please--branches') }} + if: ${{ (needs.changed_files.outputs.core == 'true' || needs.changed_files.outputs.all == 'true') && !contains(github.ref_name, 'release-please--branches') }} uses: ./.github/workflows/ci-core-reusable.yml # build-core-images: