Skip to content

Commit

Permalink
Rename cache from debuginfod-cache to libcdb-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Oct 1, 2024
1 parent 647ce2b commit 73f79a4
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
services:
debuginfod-cache:
libcdb-cache:
image: nginx
volumes:
- /home/runner/debuginfod-cache:/var/cache/nginx
- /home/runner/libcdb-cache:/var/cache/nginx
ports:
- 3000:3000 # https://debuginfod.elfutils.org proxy cache
- 3001:3001 # https://libc.rip/ proxy cache
Expand All @@ -32,25 +32,25 @@ jobs:
git fetch origin
git log --oneline --graph -10
- name: Fix debuginfod-cache permissions
- name: Fix libcdb-cache permissions
id: fix-perms
run: |
sudo chown -R runner:runner /home/runner/debuginfod-cache
sudo chown -R runner:runner /home/runner/libcdb-cache
echo "date=$(/bin/date -u "+%Y%m%d%H%M%S")" >> $GITHUB_OUTPUT
- name: Cache for debuginfod
- name: Cache for libcdb requests
uses: actions/cache@v4
with:
path: ~/debuginfod-cache
key: debuginfod-python${{ matrix.python_version }}-${{ steps.fix-perms.outputs.date }}
path: ~/libcdb-cache
key: libcdb-python${{ matrix.python_version }}-${{ steps.fix-perms.outputs.date }}
restore-keys: |
debuginfod-python${{ matrix.python_version }}-
debuginfod-
libcdb-python${{ matrix.python_version }}-
libcdb-
- name: Install debuginfod-cache service config
- name: Install libcdb-cache service config
run: |
sudo chown -R 101:101 /home/runner/debuginfod-cache
container_id=$(docker ps --all --filter volume=/home/runner/debuginfod-cache --no-trunc --format "{{.ID}}")
sudo chown -R 101:101 /home/runner/libcdb-cache
container_id=$(docker ps --all --filter volume=/home/runner/libcdb-cache --no-trunc --format "{{.ID}}")
docker cp ./travis/nginx.conf $container_id:/etc/nginx/nginx.conf
docker restart $container_id
Expand Down Expand Up @@ -250,11 +250,11 @@ jobs:
path: .coverage*
include-hidden-files: true

- name: Fix debuginfod-cache permissions
- name: Fix libcdb-cache permissions
run: |
container_id=$(docker ps --filter volume=/home/runner/debuginfod-cache --no-trunc --format "{{.ID}}")
container_id=$(docker ps --filter volume=/home/runner/libcdb-cache --no-trunc --format "{{.ID}}")
docker stop $container_id
sudo chown -R runner:runner /home/runner/debuginfod-cache
sudo chown -R runner:runner /home/runner/libcdb-cache
windows-test:
runs-on: windows-latest
Expand Down

0 comments on commit 73f79a4

Please sign in to comment.