Skip to content

Commit

Permalink
ci: publish: Use RUNNER_TEMP for brewed bottles dir
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitronx committed Oct 16, 2024
1 parent bd6abc4 commit 9dde88d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ jobs:
- name: Create brewed-bottles dir
run: |
mkdir brewed-bottles
mkdir ${RUNNER_TEMP}/brewed-bottles
pwd
ls -lA ${RUNNER_TEMP}/brewed-bottles
- name: HACK - Bottle go + Force link conflicting go binaries
env:
Expand All @@ -44,8 +46,8 @@ jobs:
brew install --build-bottle go || true
brew link --overwrite go
brew bottle go
find "${GITHUB_WORKSPACE}" -iname '*.bottle.*.tar.gz' -exec mv '{}' ./brewed-bottles/ \;
ls -l ./brewed-bottles/
find "${GITHUB_WORKSPACE}" -iname '*.bottle.*' -exec mv '{}' ${RUNNER_TEMP}/brewed-bottles/ \;
ls -l ${RUNNER_TEMP}/brewed-bottles/
fi
:
Expand All @@ -70,13 +72,15 @@ jobs:
brew test-bot --only-formulae --only-json-tab --skip-recursive-dependents --root-url="https://ghcr.io/v2/LyraPhase/right2repair"
if: github.event_name == 'pull_request'
- name: DEBUG - bottle files
run: ls -lA ./brewed-bottles/
- name: Move bottle files
run: |
find "${GITHUB_WORKSPACE}" -iname '*.bottle.*' -exec mv '{}' ${RUNNER_TEMP}/brewed-bottles/ \;
ls -lA ${RUNNER_TEMP}/brewed-bottles/
if: github.event_name == 'pull_request'

- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@main
with:
name: bottles_${{ matrix.os }}-${{ runner.arch }}
path: './brewed-bottles/*.bottle.*'
path: '${{ runner.temp }}/brewed-bottles/*.bottle.*'

0 comments on commit 9dde88d

Please sign in to comment.