Skip to content

Commit

Permalink
CI: run teardown steps only if not cancelled
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
FooBarWidget committed Oct 13, 2024
1 parent 97651ad commit 0ef9917
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
CONTAINER_NAME: ${{ vars.SCCACHE_AZURE_BLOB_CONTAINER }}
BLOB_NAME: "binaries/linux-binaries-cache-${{ hashFiles('packaging/binaries/linux/docker_image/Dockerfile') }}-${{ matrix.runner }}-${{ matrix.arch }}.tar.zstd"
CACHE_PATH: packaging/binaries/linux/cache
if: always()
if: '!cancelled()'

- name: Package
run: ./package -i output -o output -a "$ARCHITECTURE"
Expand Down Expand Up @@ -209,7 +209,7 @@ jobs:

- name: Teardown sccache
run: ./dev/ci/teardown-sccache
if: always()
if: '!cancelled()'

- name: Archive configure logs
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
BLOB_NAME: "binaries/debian-cache-${{ matrix.distro }}-${{ matrix.arch.name }}.tar.zstd"
CACHE_PATH: packaging/debian/cache
SUDO: true
if: always()
if: '!cancelled()'

- uses: actions/upload-artifact@v4
with:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:

- name: Teardown sccache
run: ./dev/ci/teardown-sccache
if: always()
if: '!cancelled()'

cxx-macos:
name: C++ tests on macOS
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:

- name: Teardown sccache
run: ./dev/ci/teardown-sccache
if: always()
if: '!cancelled()'

apache2:
name: "Apache2 tests on ${{ matrix.name }}"
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:

- name: Teardown sccache
run: ./dev/ci/teardown-sccache
if: always()
if: '!cancelled()'


- name: Setup sccache as root
Expand All @@ -269,7 +269,7 @@ jobs:

- name: Teardown sccache as root
run: ./dev/ci/teardown-sccache
if: always()
if: '!cancelled()'
env:
SUDO: true

Expand Down Expand Up @@ -366,7 +366,7 @@ jobs:

- name: Teardown sccache
run: ./dev/ci/teardown-sccache
if: always()
if: '!cancelled()'

nginx_dynamic:
name: "Nginx dynamic module tests on ${{ matrix.name }}"
Expand Down Expand Up @@ -442,7 +442,7 @@ jobs:

- name: Teardown sccache
run: ./dev/ci/teardown-sccache
if: always()
if: '!cancelled()'

standalone:
name: "Passenger Standalone tests on ${{ matrix.name }}"
Expand Down Expand Up @@ -500,7 +500,7 @@ jobs:

- name: Teardown sccache
run: ./dev/ci/teardown-sccache
if: always()
if: '!cancelled()'

ruby:
name: "Ruby tests on ${{ matrix.name }}"
Expand Down Expand Up @@ -565,7 +565,7 @@ jobs:

- name: Teardown sccache
run: ./dev/ci/teardown-sccache
if: always()
if: '!cancelled()'

nodejs:
name: "Node.js tests on ${{ matrix.name }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
BLOB_NAME: "binaries/rpm-cache-${{ matrix.distro }}-${{ matrix.arch.rpm_arch }}.tar.zstd"
CACHE_PATH: packaging/rpm/cache
SUDO: true
if: always()
if: '!cancelled()'

- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 0ef9917

Please sign in to comment.