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 bb1f338
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 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.*.tar.gz' -exec mv '{}' ${RUNNER_TEMP}/brewed-bottles/ \;
ls -l ${RUNNER_TEMP}/brewed-bottles/
fi
:
Expand All @@ -71,12 +73,12 @@ jobs:
if: github.event_name == 'pull_request'
- name: DEBUG - bottle files
run: ls -lA ./brewed-bottles/
run: 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: '${{ env.RUNNER_TEMP }}/brewed-bottles/*.bottle.*'

0 comments on commit bb1f338

Please sign in to comment.