add caching

This commit is contained in:
Denis Angell
2025-03-29 03:08:58 +01:00
parent 95ab35a185
commit f8d22bbc24
2 changed files with 17 additions and 51 deletions

View File

@@ -2,9 +2,9 @@ name: Release - SH Runner
on:
push:
branches: ["dev", "candidate", "release"]
branches: ["dev", "candidate", "release", "jshooks"]
pull_request:
branches: ["dev", "candidate", "release"]
branches: ["dev", "candidate", "release", "jshooks"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
@@ -17,17 +17,6 @@ jobs:
build-and-test:
runs-on: [self-hosted, vanity]
steps:
- name: Clean up any leftover containers from previous runs
run: |
BUILD_CONTAINERS=$(docker ps -q --filter "name=xahaud_cached_builder") || true
if [[ -n "$BUILD_CONTAINERS" ]]; then
echo "Found leftover containers from previous runs, stopping them"
docker stop $BUILD_CONTAINERS || echo "Failed to stop some containers"
docker rm -f $BUILD_CONTAINERS || echo "Failed to remove some containers"
else
echo "No leftover containers found"
fi
- name: Prepare workspace
run: |
SAFE_BRANCH=$(echo "${{ github.ref_name }}" | sed -e 's/[^a-zA-Z0-9._-]/-/g')