Skip to content

Commit

Permalink
use caching in pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
aryairani committed Mar 21, 2024
1 parent 820e9d1 commit b5beda1
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: restore stack caches
uses: ./.github/workflows/actions/restore-stack-cache
with:
cache-prefix: pre-release

- name: install stack
uses: ./.github/workflows/actions/install-stack

Expand All @@ -29,7 +34,17 @@ jobs:
git config --global user.email "[email protected]"
- name: build
run: stack --no-terminal build --flag unison-parser-typechecker:optimized
run: |
# unison-cli embeds version numbers using TH
# so it needs to be forced to rebuild to ensure those are updated.
stack clean unison-cli
stack --no-terminal build --flag unison-parser-typechecker:optimized
- name: save stack caches
uses: ./.github/workflows/actions/save-stack-cache
with:
cache-prefix: pre-release

- name: fetch latest Unison Local UI and package with ucm
run: |
Expand Down

0 comments on commit b5beda1

Please sign in to comment.