Merge pull request #2324 from edemirkan/feat/workflow

feat: use repo variable for cache repo name
This commit is contained in:
tiopex
2026-02-15 21:37:07 +01:00
committed by GitHub
8 changed files with 15 additions and 15 deletions

View File

@@ -53,7 +53,7 @@ jobs:
- name: Retrieve ccache
run: |
URL="https://github.com/${{ github.repository_owner }}/distribution-cache/releases/download/ccache/ccache-aarch64-${{ inputs.DEVICE }}-emu-libretro.tar"
URL="https://github.com/${{ github.repository_owner }}/${{ vars.CACHE_REPO || 'distribution-cache' }}/releases/download/ccache/ccache-aarch64-${{ inputs.DEVICE }}-emu-libretro.tar"
curl -L --fail --silent --show-error "$URL" | tar -xvf - || echo "Cache archive not found, skipping."
- name: Download aarch64 (${{ inputs.DEVICE }})
@@ -164,7 +164,7 @@ jobs:
prerelease: true
body: ccache
token: ${{ secrets.GH_PAT }}
repo: distribution-cache
repo: ${{ vars.CACHE_REPO || 'distribution-cache' }}
continue-on-error: true
- name: Print space

View File

@@ -72,7 +72,7 @@ jobs:
- name: Retrieve ccache
run: |
BASE="https://github.com/${{ github.repository_owner }}/distribution-cache/releases/download/ccache"
BASE="https://github.com/${{ github.repository_owner }}/${{ vars.CACHE_REPO || 'distribution-cache' }}/releases/download/ccache"
PREFIX="ccache-aarch64-${{ inputs.DEVICE }}-emu-standalone.tar.part-"
found_any=0
for suffix in $(printf "%s\n" {a..z}{a..z}); do
@@ -192,7 +192,7 @@ jobs:
prerelease: true
body: ccache
token: ${{ secrets.GH_PAT }}
repo: distribution-cache
repo: ${{ vars.CACHE_REPO || 'distribution-cache' }}
continue-on-error: true
- name: Print space

View File

@@ -47,7 +47,7 @@ jobs:
- name: Retrieve ccache
run: |
URL="https://github.com/${{ github.repository_owner }}/distribution-cache/releases/download/ccache/ccache-aarch64-${{ inputs.DEVICE }}-mame.tar"
URL="https://github.com/${{ github.repository_owner }}/${{ vars.CACHE_REPO || 'distribution-cache' }}/releases/download/ccache/ccache-aarch64-${{ inputs.DEVICE }}-mame.tar"
curl -L --fail --silent --show-error "$URL" | tar -xvf - || echo "Cache archive not found, skipping."
- name: Download aarch64-toolchain (${{ inputs.DEVICE }})
@@ -112,7 +112,7 @@ jobs:
prerelease: true
body: ccache
token: ${{ secrets.GH_PAT }}
repo: distribution-cache
repo: ${{ vars.CACHE_REPO || 'distribution-cache' }}
continue-on-error: true
- name: Compress directory

View File

@@ -53,7 +53,7 @@ jobs:
- name: Retrieve ccache
run: |
URL="https://github.com/${{ github.repository_owner }}/distribution-cache/releases/download/ccache/ccache-aarch64-${{ inputs.DEVICE }}-qt6.tar"
URL="https://github.com/${{ github.repository_owner }}/${{ vars.CACHE_REPO || 'distribution-cache' }}/releases/download/ccache/ccache-aarch64-${{ inputs.DEVICE }}-qt6.tar"
curl -L --fail --silent --show-error "$URL" | tar -xvf - || echo "Cache archive not found, skipping."
- name: Download aarch64 (${{ inputs.DEVICE }})
@@ -118,7 +118,7 @@ jobs:
prerelease: true
body: ccache
token: ${{ secrets.GH_PAT }}
repo: distribution-cache
repo: ${{ vars.CACHE_REPO || 'distribution-cache' }}
continue-on-error: true
- name: Compress directory

View File

@@ -50,7 +50,7 @@ jobs:
- name: Retrieve ccache
run: |
URL="https://github.com/${{ github.repository_owner }}/distribution-cache/releases/download/ccache/ccache-aarch64-${{ inputs.DEVICE }}-toolchain.tar"
URL="https://github.com/${{ github.repository_owner }}/${{ vars.CACHE_REPO || 'distribution-cache' }}/releases/download/ccache/ccache-aarch64-${{ inputs.DEVICE }}-toolchain.tar"
curl -L --fail --silent --show-error "$URL" | tar -xvf - || echo "Cache archive not found, skipping."
- name: Build
@@ -98,7 +98,7 @@ jobs:
prerelease: true
body: ccache
token: ${{ secrets.GH_PAT }}
repo: distribution-cache
repo: ${{ vars.CACHE_REPO || 'distribution-cache' }}
continue-on-error: true
- name: Compress directory

View File

@@ -50,7 +50,7 @@ jobs:
- name: Retrieve ccache
run: |
URL="https://github.com/${{ github.repository_owner }}/distribution-cache/releases/download/ccache/ccache-aarch64-${{ inputs.DEVICE }}.tar"
URL="https://github.com/${{ github.repository_owner }}/${{ vars.CACHE_REPO || 'distribution-cache' }}/releases/download/ccache/ccache-aarch64-${{ inputs.DEVICE }}.tar"
curl -L --fail --silent --show-error "$URL" | tar -xvf - || echo "Cache archive not found, skipping."
- name: Download aarch64-toolchain (${{ inputs.DEVICE }})
@@ -145,7 +145,7 @@ jobs:
prerelease: true
body: ccache
token: ${{ secrets.GH_PAT }}
repo: distribution-cache
repo: ${{ vars.CACHE_REPO || 'distribution-cache' }}
continue-on-error: true
- name: Print space

View File

@@ -47,7 +47,7 @@ jobs:
- name: Retrieve ccache
run: |
URL="https://github.com/${{ github.repository_owner }}/distribution-cache/releases/download/ccache/ccache-arm-${{ inputs.DEVICE }}.tar"
URL="https://github.com/${{ github.repository_owner }}/${{ vars.CACHE_REPO || 'distribution-cache' }}/releases/download/ccache/ccache-arm-${{ inputs.DEVICE }}.tar"
curl -L --fail --silent --show-error "$URL" | tar -xvf - || echo "Cache archive not found, skipping."
- name: build
@@ -95,7 +95,7 @@ jobs:
prerelease: true
body: cache
token: ${{ secrets.GH_PAT }}
repo: distribution-cache
repo: ${{ vars.CACHE_REPO || 'distribution-cache' }}
continue-on-error: true
- name: Compress directory

View File

@@ -49,7 +49,7 @@ jobs:
- name: Retrieve ccache
run: |
URL="https://github.com/${{ github.repository_owner }}/distribution-cache/releases/download/ccache/ccache-aarch64-${{ matrix.device }}-toolchain.tar"
URL="https://github.com/${{ github.repository_owner }}/${{ vars.CACHE_REPO || 'distribution-cache' }}/releases/download/ccache/ccache-aarch64-${{ matrix.device }}-toolchain.tar"
curl -L --fail --silent --show-error "$URL" | tar -xvf - || echo "Cache archive not found, skipping."
- name: Get deps