Skip to content

Commit

Permalink
Update release.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
kindaro committed Sep 13, 2023
1 parent 4849fbd commit 32e95a8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,11 @@ jobs:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- name: Freeze
run: |
cabal freeze
- name: Cache ~/.cabal/store
uses: actions/cache@v3.0.5
uses: actions/cache@v2
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
key: ${{ runner.os }}-ghc-${{ matrix.ghc }}-${{ github.sha }}
path: ~/.cabal/store

- name: Build binary
run: |
Expand All @@ -89,7 +85,7 @@ jobs:
run: echo "BINARY_PATH=./dist/cabal-prettify${{ env.EXT }}" >> $GITHUB_ENV

- name: Compress binary
uses: svenstaro/upx-action@2.0.1
uses: svenstaro/upx-action@v2
with:
file: ${{ env.BINARY_PATH }}

Expand Down

0 comments on commit 32e95a8

Please sign in to comment.