Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit ea92c28

Browse files
author
Matthias Koeppe
committed
Factor out .github/workflows/extra-sage-local.sh from ci-cygwin*.yml, remove archives after extracting
1 parent 8df6b20 commit ea92c28

File tree

4 files changed

+57
-120
lines changed

4 files changed

+57
-120
lines changed

.github/workflows/ci-cygwin-minimal.yml

Lines changed: 10 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,8 @@ jobs:
203203
with:
204204
name: ${{ env.LOCAL_ARTIFACT_NAME }}
205205
- name: Extract sage-local artifact
206-
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
207-
# We set the installation records to the same mtime so that no rebuilds due to dependencies
208-
# among these packages are triggered.
209206
run: |
210-
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l sage-local-*.tar; for a in sage-local-${{ env.PREVIOUS_STAGES }}.tar; do echo Extracting $a; tar xf $a; done; (cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *); ls -l local local/var/lib/sage/installed/; src/bin/sage-rebase.sh local'
207+
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && .github/workflows/extract-sage-local.sh sage-local-${{ env.PREVIOUS_STAGES }}.tar'
211208
- name: configure
212209
run: |
213210
C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'
@@ -285,11 +282,8 @@ jobs:
285282
with:
286283
name: ${{ env.LOCAL_ARTIFACT_NAME }}
287284
- name: Extract sage-local artifact
288-
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
289-
# We set the installation records to the same mtime so that no rebuilds due to dependencies
290-
# among these packages are triggered.
291285
run: |
292-
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l sage-local-*.tar; for a in sage-local-${{ env.PREVIOUS_STAGES }}.tar; do echo Extracting $a; tar xf $a; done; (cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *); ls -l local local/var/lib/sage/installed/; src/bin/sage-rebase.sh local'
286+
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && .github/workflows/extract-sage-local.sh sage-local-${{ env.PREVIOUS_STAGES }}.tar'
293287
- name: configure
294288
run: |
295289
C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'
@@ -365,11 +359,8 @@ jobs:
365359
with:
366360
name: ${{ env.LOCAL_ARTIFACT_NAME }}
367361
- name: Extract sage-local artifact
368-
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
369-
# We set the installation records to the same mtime so that no rebuilds due to dependencies
370-
# among these packages are triggered.
371362
run: |
372-
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l sage-local-*.tar; for a in sage-local-${{ env.PREVIOUS_STAGES }}.tar; do echo Extracting $a; tar xf $a; done; (cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *); ls -l local local/var/lib/sage/installed/; src/bin/sage-rebase.sh local'
363+
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && .github/workflows/extract-sage-local.sh sage-local-${{ env.PREVIOUS_STAGES }}.tar'
373364
- name: configure
374365
run: |
375366
C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'
@@ -445,11 +436,8 @@ jobs:
445436
with:
446437
name: ${{ env.LOCAL_ARTIFACT_NAME }}
447438
- name: Extract sage-local artifact
448-
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
449-
# We set the installation records to the same mtime so that no rebuilds due to dependencies
450-
# among these packages are triggered.
451439
run: |
452-
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l sage-local-*.tar; for a in sage-local-${{ env.PREVIOUS_STAGES }}.tar; do echo Extracting $a; tar xf $a; done; (cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *); ls -l local local/var/lib/sage/installed/; src/bin/sage-rebase.sh local'
440+
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && .github/workflows/extract-sage-local.sh sage-local-${{ env.PREVIOUS_STAGES }}.tar'
453441
- name: configure
454442
run: |
455443
C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'
@@ -525,11 +513,8 @@ jobs:
525513
with:
526514
name: ${{ env.LOCAL_ARTIFACT_NAME }}
527515
- name: Extract sage-local artifact
528-
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
529-
# We set the installation records to the same mtime so that no rebuilds due to dependencies
530-
# among these packages are triggered.
531516
run: |
532-
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l sage-local-*.tar; for a in sage-local-${{ env.PREVIOUS_STAGES }}.tar; do echo Extracting $a; tar xf $a; done; (cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *); ls -l local local/var/lib/sage/installed/; src/bin/sage-rebase.sh local'
517+
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && .github/workflows/extract-sage-local.sh sage-local-${{ env.PREVIOUS_STAGES }}.tar'
533518
- name: configure
534519
run: |
535520
C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'
@@ -607,11 +592,8 @@ jobs:
607592
with:
608593
name: ${{ env.LOCAL_ARTIFACT_NAME }}
609594
- name: Extract sage-local artifact
610-
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
611-
# We set the installation records to the same mtime so that no rebuilds due to dependencies
612-
# among these packages are triggered.
613595
run: |
614-
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l sage-local-*.tar; for a in sage-local-${{ env.PREVIOUS_STAGES }}.tar; do echo Extracting $a; tar xf $a; done; (cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *); ls -l local local/var/lib/sage/installed/; src/bin/sage-rebase.sh local'
596+
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && .github/workflows/extract-sage-local.sh sage-local-${{ env.PREVIOUS_STAGES }}.tar'
615597
- name: configure
616598
run: |
617599
C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'
@@ -689,11 +671,8 @@ jobs:
689671
with:
690672
name: ${{ env.LOCAL_ARTIFACT_NAME }}
691673
- name: Extract sage-local artifact
692-
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
693-
# We set the installation records to the same mtime so that no rebuilds due to dependencies
694-
# among these packages are triggered.
695674
run: |
696-
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l sage-local-*.tar; for a in sage-local-${{ env.PREVIOUS_STAGES }}.tar; do echo Extracting $a; tar xf $a; done; (cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *); ls -l local local/var/lib/sage/installed/; src/bin/sage-rebase.sh local'
675+
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && .github/workflows/extract-sage-local.sh sage-local-${{ env.PREVIOUS_STAGES }}.tar'
697676
- name: configure
698677
run: |
699678
C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'
@@ -769,11 +748,8 @@ jobs:
769748
with:
770749
name: ${{ env.LOCAL_ARTIFACT_NAME }}
771750
- name: Extract sage-local artifact
772-
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
773-
# We set the installation records to the same mtime so that no rebuilds due to dependencies
774-
# among these packages are triggered.
775751
run: |
776-
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l sage-local-*.tar; for a in sage-local-${{ env.PREVIOUS_STAGES }}.tar; do echo Extracting $a; tar xf $a; done; (cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *); ls -l local local/var/lib/sage/installed/; src/bin/sage-rebase.sh local'
752+
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && .github/workflows/extract-sage-local.sh sage-local-${{ env.PREVIOUS_STAGES }}.tar'
777753
- name: configure
778754
run: |
779755
C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'
@@ -849,11 +825,8 @@ jobs:
849825
with:
850826
name: ${{ env.LOCAL_ARTIFACT_NAME }}
851827
- name: Extract sage-local artifact
852-
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
853-
# We set the installation records to the same mtime so that no rebuilds due to dependencies
854-
# among these packages are triggered.
855828
run: |
856-
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l sage-local-*.tar; for a in sage-local-${{ env.PREVIOUS_STAGES }}.tar; do echo Extracting $a; tar xf $a; done; (cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *); ls -l local local/var/lib/sage/installed/; src/bin/sage-rebase.sh local'
829+
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && .github/workflows/extract-sage-local.sh sage-local-${{ env.PREVIOUS_STAGES }}.tar'
857830
- name: configure
858831
run: |
859832
C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'
@@ -929,11 +902,8 @@ jobs:
929902
with:
930903
name: ${{ env.LOCAL_ARTIFACT_NAME }}
931904
- name: Extract sage-local artifact
932-
# We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
933-
# We set the installation records to the same mtime so that no rebuilds due to dependencies
934-
# among these packages are triggered.
935905
run: |
936-
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l sage-local-*.tar; for a in sage-local-${{ env.PREVIOUS_STAGES }}.tar; do echo Extracting $a; tar xf $a; done; (cd local/var/lib/sage/installed/ && touch .dummy && touch --reference=.dummy *); ls -l local local/var/lib/sage/installed/; src/bin/sage-rebase.sh local'
906+
C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && .github/workflows/extract-sage-local.sh sage-local-${{ env.PREVIOUS_STAGES }}.tar'
937907
- name: configure
938908
run: |
939909
C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'

0 commit comments

Comments
 (0)