Skip to content

Commit

Permalink
Try adding an additional rust-cache directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
csasarak committed Aug 29, 2024
1 parent db0bec1 commit 8927901
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,14 @@ jobs:

# Set up Rust, this is mainly used for rust-cache.
# This action installs the 'minimal' profile.
# Even on Linux ARM this is necessary because rust-cache uses it.
- uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2
with:
# This additional directory is because the home directory inside containers
# is different than the one outside of it.
cache-directories: ${{ runner.temp }}/_github_home/.cargo

- name: Debugging information
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ git config --global --add safe.directory "$GITHUB_WORKSPACE"
# During the tag build, cabal/GHC may not realize that they have to rebuild the Version.hs file because the tag is invisible to it.
# This line adds a comment to our version source file to prompt cabal/GHC to rebuild Version.hs.
echo "{- $GITHUB_RUN_ID -}" >> src/App/Version.hs
cabal update --verbose
cabal build --verbose --project-file="$PROJECT_FILE" all
cabal update
cabal build --project-file="$PROJECT_FILE" all
cabal test --project-file="$PROJECT_FILE" unit-tests

# TODO: Bring this back.
Expand Down

0 comments on commit 8927901

Please sign in to comment.