Skip to content

Commit bdc198c

Browse files
committed
chore: fix windows
Signed-off-by: Carlos A Becker <[email protected]>
1 parent 5ec6d29 commit bdc198c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

.github/workflows/nightly.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@ jobs:
2020
DOCKER_CLI_EXPERIMENTAL: "enabled"
2121
flags: ""
2222
steps:
23-
- if: ${{ github.event_name == 'workflow_dispatch' }}
24-
shell: bash
25-
run: echo "flags=--nightly" >> $GITHUB_ENV
26-
- if: matrix.os == 'ubuntu-latest'
27-
shell: bash
28-
run: echo "goos=linux" >> $GITHUB_ENV
29-
- if: matrix.os == 'macos-latest'
30-
shell: bash
31-
run: echo "goos=darwin" >> $GITHUB_ENV
32-
- if: matrix.os == 'windows-latest'
33-
shell: bash
34-
run: echo "goos=windows" >> $GITHUB_ENV
3523
- uses: actions/checkout@v3
3624
with:
3725
fetch-depth: 0
@@ -53,13 +41,25 @@ jobs:
5341
- shell: bash
5442
run: |
5543
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
56-
- id: cache
57-
uses: actions/cache@v3
44+
- uses: actions/cache@v3
45+
if: matrix.os == 'ubuntu-latest'
5846
with:
59-
path: dist/${{ env.goos }}
60-
key: ${{ env.goos }}-${{ env.sha_short }}
47+
path: dist/linux
48+
key: linux-${{ env.sha_short }}
49+
- uses: actions/cache@v3
50+
if: matrix.os == 'macos-latest'
51+
with:
52+
path: dist/darwin
53+
key: darwin-${{ env.sha_short }}
54+
- uses: actions/cache@v3
55+
if: matrix.os == 'windows-latest'
56+
with:
57+
path: dist\windows
58+
key: windows-${{ env.sha_short }}
59+
- if: ${{ github.event_name == 'workflow_dispatch' }}
60+
shell: bash
61+
run: echo "flags=--nightly" >> $GITHUB_ENV
6162
- uses: goreleaser/goreleaser-action@v4
62-
if: steps.cache.outputs.cache-hit != 'true' # do not run if cache hit
6363
with:
6464
distribution: goreleaser-pro
6565
version: latest

0 commit comments

Comments
 (0)