Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
.github/workflows/tox.yml: Fixup for macOS tar
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Oct 17, 2021
1 parent d08452c commit 0799c5f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ jobs:
path: /tmp
if: contains(matrix.stage, '2')
- name: Extract sage-local artifact
# This is macOS tar -- cannot use --listed-incremental
run: |
.github/workflows/extract-sage-local.sh /tmp/sage-local-*.tar && tar --create --listed-incremental=/tmp/sage-local.snar --file /dev/null $(pwd)/.tox/$TOX_ENV
.github/workflows/extract-sage-local.sh /tmp/sage-local-*.tar
if: contains(matrix.stage, '2')
- name: Build and test with tox
# We use a high parallelization on purpose in order to catch possible parallelization bugs in the build scripts.
Expand Down Expand Up @@ -101,9 +102,10 @@ jobs:
- name: Prepare sage-local artifact
# This also includes the copies of homebrew or conda installed in the tox environment.
# We use absolute pathnames in the tar file.
# This is macOS tar -- cannot use --remove-files.
# We remove the $SAGE_LOCAL/lib64 link, which will be recreated by the next stage.
run: |
(cd .tox/$TOX_ENV && rm -f "local/lib64" && tar -cf /tmp/sage-${{ env.TOX_ENV }}-${{ matrix.stage }}.tar --remove-files $(pwd))
(cd .tox/$TOX_ENV && rm -f "local/lib64" && tar -cf /tmp/sage-${{ env.TOX_ENV }}-${{ matrix.stage }}.tar $(pwd))
if: contains(matrix.stage, '1')
- uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 0799c5f

Please sign in to comment.