diff --git a/.github/workflows/goreleaser-actions.yml b/.github/workflows/goreleaser-actions.yml index 2698ea3435..be0978a27b 100644 --- a/.github/workflows/goreleaser-actions.yml +++ b/.github/workflows/goreleaser-actions.yml @@ -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: @@ -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 @@ -137,6 +141,7 @@ jobs: submodules: 'recursive' - name: Set up cache + if: ${{ !contains(runner.name, 'nsc') }} uses: actions/cache@v4 with: path: | @@ -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