diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 5f130fd..8cb228c 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -26,9 +26,9 @@ jobs: id: get_version run: 'echo ::set-output name=version::${GITHUB_REF#refs/tags/}' - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - - uses: actions/cache@v2 + - uses: actions/cache@v3 name: Cache ~/.stack with: path: | @@ -38,10 +38,13 @@ jobs: restore-keys: "${{ runner.os }}-stack-${{ matrix.stack }}-ghc-${{ matrix.ghc }}-" - name: Setup Haskell Stack - uses: haskell/actions/setup@v1 + uses: haskell-actions/setup@v2 with: + ghc-version: ${{ matrix.ghc }} enable-stack: true + stack-version: 'latest' stack-no-global: true + stack-setup-ghc: true - name: Build run: stack build @@ -56,11 +59,11 @@ jobs: mkdir -p artifacts mv goldplate.tar.gz artifacts/goldplate-$VERSION-$PLATFORM-x86_64.tar.gz - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 if: startsWith(github.ref, 'refs/tags/v') with: path: artifacts/* - name: artifacts + name: artifacts-${{ runner.os }}-${{ matrix.ghc }} release: name: Release @@ -73,9 +76,9 @@ jobs: id: get_version run: 'echo ::set-output name=version::${GITHUB_REF#refs/tags/}' - - uses: actions/download-artifact@v2 + - uses: actions/download-artifact@v4 with: - name: artifacts + name: pattern: artifacts-* - name: Display structure of downloaded files run: ls -R