Skip to content

ci-cygwin*.yml: Fix packaging up of SAGE_LOCAL/var/tmp/sage/build/* #31211

@mkoeppe

Description

@mkoeppe

These files are intended to be put in the logs artifact, but the code is being run with the wrong shell, so it fails silently:

https://github.com/kliem/sage/runs/1626910566

0s
Run mkdir -p "artifacts/$LOGS_ARTIFACT_NAME"; for a in "/opt/sage-255cf51a4f41b054d32a39562102877b0b18969f"/var/tmp/sage/build/*; do if [ -d "$a" ]; then tar -c --remove-files -f "artifacts/$LOGS_ARTIFACT_NAME/$(basename "$a").tar" "$a"; fi; done; cp -r logs/*  "artifacts/$LOGS_ARTIFACT_NAME"
  mkdir -p "artifacts/$LOGS_ARTIFACT_NAME"; for a in "/opt/sage-255cf51a4f41b054d32a39562102877b0b18969f"/var/tmp/sage/build/*; do if [ -d "$a" ]; then tar -c --remove-files -f "artifacts/$LOGS_ARTIFACT_NAME/$(basename "$a").tar" "$a"; fi; done; cp -r logs/*  "artifacts/$LOGS_ARTIFACT_NAME"
  shell: C:\Program Files\Git\bin\bash.EXE --noprofile --norc -e -o pipefail {0}

(the correct shell to use for running tar is the cygwin shell.)

Depends on #33791

CC: @kliem @malb

Component: porting

Reviewer: Kwankyu Lee

Issue created by migration from https://trac.sagemath.org/ticket/31211

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions