File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 8282 uses : actions/upload-artifact@v4
8383 with :
8484 name : anaconda-pkg-${{ matrix.os }}-py${{ matrix.python-version }}
85- path : PKG.conda
85+ path : PKG.conda.tar
8686
8787 - name : Check anaconda.log
8888 run : |
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ PYTHON_VERSION="39"
3030# py310_23.11.0-1
3131# py311_23.11.0-1
3232
33+ # For set -x (includes newline):
34+ PS4="
35+ + "
36+
3337DATE_FMT_NICE=" %D{%Y-%m-%d} %D{%H:%M:%S}"
3438log ()
3539# General-purpose log line
@@ -62,8 +66,11 @@ if [[ ${WORKSPACE:-0} == 0 ]] abort "Set WORKSPACE!"
6266help ()
6367{
6468 cat << EOF
65- -a Artifact- copy package back to ./PKG.conda
69+ -a Artifact- bundle package into ./PKG.conda.tar
6670 used to make an artifact in GitHub Actions
71+ (artifact names are fixed; the tar contents have
72+ the original *.conda file name, which must
73+ be retained)
6774-b disable bootstrapping during make-release-pkg
6875 runs faster if after a successful bootstrap
6976-c CONDA_TIMESTAMP default "$CONDA_TIMESTAMP "
@@ -297,9 +304,6 @@ try-swift-t()
297304 log " TRY SWIFT/T..."
298305 PATH=$WORKSPACE /sfw/Miniconda-install/bin:$PATH
299306 () {
300- # For set -x (includes newline):
301- PS4="
302- + "
303307 set -x
304308 which swift-t
305309 swift-t -v
@@ -347,6 +351,9 @@ task $SWIFT_T/dev/conda/conda-install.sh $USE_R $PKG_PATH
347351
348352try-swift-t
349353
350- if (( ${# A} )) cp -v $PKG_PATH PKG.conda
354+ if (( ${# A} )) {
355+ log " CREATING ARTIFACT ..."
356+ task tar cfv PKG.conda.tar -c $PKG_PATH $PKG_FILE
357+ }
351358
352359log-success
You can’t perform that action at this time.
0 commit comments