mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
feat(github): auto cancel previous continuous-integration.yml run when a PR is updated
This commit is contained in:
8
.github/workflows/continuous-integration.yml
vendored
8
.github/workflows/continuous-integration.yml
vendored
@@ -56,10 +56,10 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
compiler: [gcc7, latest]
|
||||
# We want to always run the tests, but after the docker image build job.
|
||||
# We want to always run the tests unless cancelled, but after the docker image build job.
|
||||
# If there is no new build then we use the old image, else we use the new image.
|
||||
# The latest compiler job isn't using the built image, so it suffers the dependance of the gcc7 job.
|
||||
if: ${{ always() }}
|
||||
if: ${{ !cancelled() }}
|
||||
needs: [BuildAndPushDockerImages]
|
||||
steps:
|
||||
# Free 4Gb of workspace
|
||||
@@ -307,9 +307,9 @@ jobs:
|
||||
|
||||
BuildAndTestDF:
|
||||
runs-on: ubuntu-latest
|
||||
# We want to always run the tests, but after the docker image build job.
|
||||
# We want to always run the tests unless cancelled, but after the docker image build job.
|
||||
# If there is no new build then we use the old image, else we use the new image.
|
||||
if: ${{ always() }}
|
||||
if: ${{ !cancelled() }}
|
||||
needs: [BuildAndPushDockerImages]
|
||||
steps:
|
||||
# A SSH private key is required as some dependencies are from private repos
|
||||
|
||||
Reference in New Issue
Block a user