Skip to content

Commit

Permalink
rewrite sccache-dist to use AMQP
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Dec 20, 2024
1 parent e4d2de9 commit 08cce61
Show file tree
Hide file tree
Showing 31 changed files with 4,563 additions and 4,424 deletions.
9 changes: 6 additions & 3 deletions .github/actions/artifact_failure/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ runs:
killall sccache || true
killall sccache-dist || true
# possible temp dirs for either linux or windows
cp "${TMP:-${TEMP:-${TMPDIR:-/tmp}}}"/sccache_*.txt . 2>/dev/null || true
tmpdir="${TMP:-${TEMP:-${TMPDIR:-/tmp}}}"
cp "$tmpdir"/sccache_*.txt . 2>/dev/null || true
ls -l .
tar --exclude='target' \
--exclude='docs' \
--exclude='bins' \
--exclude='.git' \
-zcf target/failure-${{ inputs.name }}.tar.gz .
-zcf "$tmpdir"/failure-${{ inputs.name }}.tar.gz .
cp "$tmpdir"/failure-${{ inputs.name }}.tar.gz .
- uses: actions/upload-artifact@v3
with:
name: ${{ inputs.name }}
path: target/failure-${{ inputs.name }}.tar.gz
path: failure-${{ inputs.name }}.tar.gz
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,13 +342,8 @@ jobs:

test_freebsd:
name: test freebsd-14.1 rust stable
runs-on: ${{ matrix.job.os }}
runs-on: ubuntu-22.04
timeout-minutes: 70
strategy:
fail-fast: false
matrix:
job:
- { os: ubuntu-22.04 }
steps:
- uses: actions/checkout@v4
- name: Prepare, build and test
Expand All @@ -358,7 +353,7 @@ jobs:
usesh: true
sync: rsync
copyback: false
prepare: pkg install -y ca_root_nss curl gmake gtar pot sudo
prepare: pkg install -y ca_root_nss curl gmake gtar pot sudo rabbitmq
run: |
#####################################################################################
### Prepare, build, and test
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Clone repository
uses: actions/checkout@v4
Expand All @@ -28,7 +28,7 @@ jobs:
path: ./target/debug/sccache

redis-deprecated:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

services:
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
redis:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

services:
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
s3_minio:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

# Setup minio server
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
azblob_azurite:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

# Setup azurite server
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
gha:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

env:
Expand Down Expand Up @@ -289,7 +289,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
memcached-deprecated:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

# Setup memcached server
Expand Down Expand Up @@ -344,7 +344,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
memcached:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

# Setup memcached server
Expand Down Expand Up @@ -399,7 +399,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
webdav:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

env:
Expand Down Expand Up @@ -524,7 +524,7 @@ jobs:
run: cat "$SCCACHE_ERROR_LOG"

clang:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

env:
Expand Down Expand Up @@ -647,7 +647,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
gcc:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

env:
Expand Down Expand Up @@ -692,7 +692,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
autotools:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

env:
Expand Down Expand Up @@ -748,7 +748,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
cmake:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

env:
Expand Down Expand Up @@ -806,7 +806,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
rust-test-coverage:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

env:
Expand Down Expand Up @@ -847,7 +847,7 @@ jobs:
${SCCACHE_PATH} --show-stats | grep -e "Cache hits\s*[1-9]"
zstd-compression-level:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

env:
Expand Down
Loading

0 comments on commit 08cce61

Please sign in to comment.