Skip to content

Commit

Permalink
cache RPM CI
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Oct 13, 2024
1 parent 05ff739 commit 11091ad
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,36 @@ jobs:
- rpm_arch: x86_64
docker_arch: amd64
runner: ubuntu-24.04
- rpm_arch: aarch64
docker_arch: arm64
runner: passenger-ubuntu-24.04-arm64-4cpu
# - rpm_arch: aarch64
# docker_arch: arm64
# runner: passenger-ubuntu-24.04-arm64-4cpu
runs-on: ${{ matrix.arch.runner }}
env:
WORKSPACE: ${{ github.workspace }}
RPM_ARCH: ${{ matrix.arch.rpm_arch }}
DOCKER_ARCH: ${{ matrix.arch.docker_arch }}
CACHE_DIR: ${{ github.workspace }}/cache/rpm-test/${{ matrix.distro }}-${{ matrix.arch.rpm_arch }}
DISTRIBUTION: ${{ matrix.distro }}
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Fetch cache
run: ./dev/ci/fetch-cache-az-blob-storage
env:
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_CI_STORAGE_CONNECTION_STRING }}
BLOB_NAME: "binaries/rpm-cache-${{ matrix.distro }}-${{ matrix.arch.rpm_arch }}.tar.zstd"
CACHE_PATH: cache

- run: ./dev/ci/tests/rpm/run
env:
WORKSPACE: ${{ github.workspace }}
RPM_ARCH: ${{ matrix.arch.rpm_arch }}
DOCKER_ARCH: ${{ matrix.arch.docker_arch }}
CACHE_DIR: cache
DISTRIBUTION: ${{ matrix.distro }}

- name: Update cache
run: ./dev/ci/update-cache-az-blob-storage
env:
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AZURE_CI_STORAGE_CONNECTION_STRING }}
BLOB_NAME: "binaries/rpm-cache-${{ matrix.distro }}-${{ matrix.arch.rpm_arch }}.tar.zstd"
CACHE_PATH: cache

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

0 comments on commit 11091ad

Please sign in to comment.