Skip to content

Commit

Permalink
Use higher-precision timestamps in tar archive
Browse files Browse the repository at this point in the history
  • Loading branch information
neilmayhew committed Apr 25, 2024
1 parent 89cd0ae commit b2d9a76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ jobs:

# Pass working directory to test jobs
- name: Archive working directory
run: tar -cf /var/tmp/state.tar . && mv /var/tmp/state.tar .
run: tar --format pax -cf /var/tmp/state.tar .
- name: Upload working directory archive
uses: actions/upload-artifact@v4
with:
name: state-${{ matrix.ghc }}-${{ matrix.os }}
path: state.tar
path: /var/tmp/state.tar
overwrite: true
retention-days: 1

Expand Down Expand Up @@ -222,7 +222,7 @@ jobs:
with:
name: state-${{ matrix.ghc }}-${{ matrix.os }}
- name: Unarchive working directory
run: tar -xf state.tar && rm state.tar
run: tar -xf /var/tmp/state.tar && rm /var/tmp/state.tar

- uses: actions/cache@v4
if: matrix.os != 'macos-latest'
Expand Down

0 comments on commit b2d9a76

Please sign in to comment.