Skip to content

Commit

Permalink
[goreleaser] disable cache build
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Jul 19, 2024
1 parent 788893f commit b993bf3
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/goreleaser-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:

# TODO: we may want to dry run this on prs
run-goreleaser:
runs-on: namespace-profile-default
runs-on: github-namespace-profile-fast-goreleaser-synapsecns-sanguine
needs: [build-goreleaser,changes]
if: ${{ needs.changes.outputs.package_count > 0 }}
permissions:
Expand All @@ -128,7 +128,11 @@ jobs:
package: ${{ fromJSON(needs.changes.outputs.packages) }}
container:
image: ${{ needs.build-goreleaser.outputs.goreleaser-image }}
volumes: [ /repo ]
volumes:
- /repo
- /cache:/cache
options: --cap-add=SYS_ADMIN # Required to by nscloud-cache-action to call `mount`.

steps:
- name: Git Checkout
uses: actions/checkout@v4
Expand All @@ -137,6 +141,7 @@ jobs:
submodules: 'recursive'

- name: Set up cache
if: ${{ !contains(runner.name, 'nsc') }}
uses: actions/cache@v4
with:
path: |
Expand All @@ -146,6 +151,12 @@ jobs:
restore-keys: |
${{ runner.os }}-go-${{matrix.package}}
- name: Setup Go cache
uses: namespacelabs/nscloud-cache-action@v1
if: ${{ contains(runner.name, 'nsc') }}
with:
cache: go

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6
Expand Down

0 comments on commit b993bf3

Please sign in to comment.