From 0180981046f162e932364e27eb6358483d825b22 Mon Sep 17 00:00:00 2001 From: smtmfft Date: Fri, 10 Jan 2025 14:14:05 +0800 Subject: [PATCH] refine CI Signed-off-by: smtmfft --- .github/workflows/ci-native.yml | 9 +++++++-- .github/workflows/ci-risc0.yml | 11 +++++++++-- .github/workflows/ci-sgx-all.yml | 6 ++++++ .github/workflows/ci-sgx-docker.yml | 4 ++++ .github/workflows/ci-sp1.yml | 11 +++++++++-- 5 files changed, 35 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-native.yml b/.github/workflows/ci-native.yml index a63cc325..d27ca50c 100644 --- a/.github/workflows/ci-native.yml +++ b/.github/workflows/ci-native.yml @@ -4,6 +4,11 @@ on: workflow_call: pull_request: paths: + - "core/**" + - "host/**" + - "lib/**" + - "!doc/**" + - "script/**" - "taskdb/**" jobs: @@ -35,7 +40,7 @@ jobs: uses: ./.github/workflows/ci-build-test-reusable.yml with: version_name: "native" - version_toolchain: "nightly-2024-04-17" + version_toolchain: "nightly-2024-09-05" taskdb: ${{ needs.set-taskdb.outputs.taskdb }} integration-test-native: @@ -44,5 +49,5 @@ jobs: uses: ./.github/workflows/ci-integration-reusable.yml with: version_name: "native" - version_toolchain: "nightly-2024-04-17" + version_toolchain: "nightly-2024-09-05" taskdb: ${{ needs.set-taskdb.outputs.taskdb }} diff --git a/.github/workflows/ci-risc0.yml b/.github/workflows/ci-risc0.yml index 792707fa..4e5af628 100644 --- a/.github/workflows/ci-risc0.yml +++ b/.github/workflows/ci-risc0.yml @@ -7,10 +7,14 @@ on: paths: - "provers/risc0/**" - "!docs/**" + - "script/build.sh" + - "script/install.sh" pull_request: paths: - "provers/risc0/**" - "!docs/**" + - "script/build.sh" + - "script/install.sh" jobs: build-test-risc0: @@ -18,11 +22,14 @@ jobs: uses: ./.github/workflows/ci-build-test-reusable.yml with: version_name: "risc0" - version_toolchain: "stable" + version_toolchain: "nightly-2024-09-05" + taskdb: “in-memory” integration-test-risc0: name: Run integration tests on risc0 uses: ./.github/workflows/ci-integration-reusable.yml with: version_name: "risc0" - version_toolchain: "nightly-2024-04-17" + version_toolchain: "nightly-2024-09-05" + taskdb: “in-memory” + diff --git a/.github/workflows/ci-sgx-all.yml b/.github/workflows/ci-sgx-all.yml index d6879a8e..6362beb0 100644 --- a/.github/workflows/ci-sgx-all.yml +++ b/.github/workflows/ci-sgx-all.yml @@ -7,10 +7,14 @@ on: paths: - "provers/sgx/**" - "!docs/**" + - "script/build.sh" + - "script/install.sh" pull_request: paths: - "provers/sgx/**" - "!docs/**" + - "script/build.sh" + - "script/install.sh" jobs: build-test-sgx: @@ -19,6 +23,7 @@ jobs: with: version_name: "sgx" version_toolchain: "stable" + taskdb: “in-memory” integration-test-sgx: name: Run integration tests on sgx @@ -26,6 +31,7 @@ jobs: with: version_name: "sgx" version_toolchain: "nightly-2024-04-17" + taskdb: “in-memory” build-test-sgx-docker: name: Build and test sgx with Docker diff --git a/.github/workflows/ci-sgx-docker.yml b/.github/workflows/ci-sgx-docker.yml index 58825bf3..f7cb133a 100644 --- a/.github/workflows/ci-sgx-docker.yml +++ b/.github/workflows/ci-sgx-docker.yml @@ -7,10 +7,14 @@ on: paths: - "docker/**" - "!docs/**" + - "script/build.sh" + - "script/install.sh" pull_request: paths: - "docker/**" - "!docs/**" + - "script/build.sh" + - "script/install.sh" jobs: build-test-sgx-with-docker: diff --git a/.github/workflows/ci-sp1.yml b/.github/workflows/ci-sp1.yml index 127e8a08..d9a1a4e6 100644 --- a/.github/workflows/ci-sp1.yml +++ b/.github/workflows/ci-sp1.yml @@ -7,10 +7,14 @@ on: paths: - "provers/sp1/**" - "!docs/**" + - "script/build.sh" + - "script/install.sh" pull_request: paths: - "provers/sp1/**" - "!docs/**" + - "script/build.sh" + - "script/install.sh" jobs: build-test-sp1: @@ -18,11 +22,14 @@ jobs: uses: ./.github/workflows/ci-build-test-reusable.yml with: version_name: "sp1" - version_toolchain: "nightly-2024-04-18" + version_toolchain: "nightly-2024-09-05" + taskdb: “in-memory” integration-test-sp1: name: Run integration tests on sp1 uses: ./.github/workflows/ci-integration-reusable.yml with: version_name: "sp1" - version_toolchain: "nightly-2024-04-17" + version_toolchain: "nightly-2024-09-05" + taskdb: “in-memory” +