Skip to content

Commit 0a75a76

Browse files
committed
Better artifact
1 parent 0acc761 commit 0a75a76

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/conda.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
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: |

dev/jenkins/anaconda.sh

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff 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+
3337
DATE_FMT_NICE="%D{%Y-%m-%d} %D{%H:%M:%S}"
3438
log()
3539
# General-purpose log line
@@ -62,8 +66,11 @@ if [[ ${WORKSPACE:-0} == 0 ]] abort "Set WORKSPACE!"
6266
help()
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

348352
try-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

352359
log-success

0 commit comments

Comments
 (0)