- name: Setup container
run: |
docker pull ${{ matrix.container[0] }}
- docker run --name build-container -d -v ${{ github.workspace }}:/workspace ${{ matrix.container[0] }} tail -f /dev/null
+ docker run --name build-container -d -e GITHUB_ACTIONS=true -v ${{ github.workspace }}:/workspace ${{ matrix.container[0] }} tail -f /dev/null
- name: Fix old debian apt
if: matrix.container[0] == 'debian:stretch' || matrix.container[0] == 'i386/debian:stretch' || matrix.container[0] == 'debian:buster' || matrix.container[0] == 'i386/debian:buster'
env:
CLOUDSMITH_API_KEY: "${{ secrets.CLOUDSMITH_KEY }}"
PCLOUD_TOKEN: "${{ secrets.PCLOUD_TOKEN }}"
NODIRTY: "${{ secrets.NODIRTY }}"
+ GITHUB_ACTIONS: "true"
# The shell to run commands with in the container
- name: Setup container
run: |
docker pull ${{ matrix.container[0] }}
- docker run --name build-container -d -v ${{ github.workspace }}:/workspace ${{ matrix.container[0] }} tail -f /dev/null
+ docker run --name build-container -d -e GITHUB_ACTIONS=true -v ${{ github.workspace }}:/workspace ${{ matrix.container[0] }} tail -f /dev/null
- name: Fix old debian apt
if: matrix.container[0] == 'debian:stretch' || matrix.container[0] == 'i386/debian:stretch' || matrix.container[0] == 'debian:buster' || matrix.container[0] == 'i386/debian:buster'
env:
# Attempt to fetch
N="${PCLOUD_BASEDIR}/staticlib/${CODENAME}/${ARCH}/${LIB_NAME}-${LIB_HASH}.tgz"
+ # GitHub Actions skips downloading from pcloud and relies on actions/cache
+ [ "$GITHUB_ACTIONS" = "true" ] && return 1
+
echo "DOWNLOAD ${N} / ${PCLOUD_HASHDIR}"
${ROOTDIR}/support/pcloud.py publink_download "${PCLOUD_HASHDIR}" "${N}" "${P}.tmp" || python3 ${ROOTDIR}/support/pcloud.py publink_download "${PCLOUD_HASHDIR}" "${N}" "${P}.tmp"