mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Merge pull request #2324 from edemirkan/feat/workflow
feat: use repo variable for cache repo name
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
4
.github/workflows/build-aarch64-mame-lr.yml
vendored
4
.github/workflows/build-aarch64-mame-lr.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/build-aarch64-qt6.yml
vendored
4
.github/workflows/build-aarch64-qt6.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
4
.github/workflows/build-aarch64.yml
vendored
4
.github/workflows/build-aarch64.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/build-arm.yml
vendored
4
.github/workflows/build-arm.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user