mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
add caching
This commit is contained in:
15
.github/workflows/xahau-sh-build-in-docker.yml
vendored
15
.github/workflows/xahau-sh-build-in-docker.yml
vendored
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user