TEST: try to override /__e/node20 via volumes
#1776
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
demo: | |
name: demonstrate need for "deprecated" actions/upload-artifact in i386 containers | |
runs-on: ubuntu-latest | |
container: | |
image: i386/ubuntu:focal | |
volumes: | |
- ${{ github.workspace }}:/__e/node20 | |
steps: | |
- name: Try to replace `node` with an i386 version | |
shell: bash | |
run: | | |
ls -lar /__e/node20 && | |
curl -Lo /tmp/node.tar.gz https://unofficial-builds.nodejs.org/download/release/v20.17.0/node-v20.17.0-linux-x86.tar.gz && | |
cd /__e/node20 && | |
tar -x --strip-components=1 -f /tmp/node.tar.gz | |
- name: Upload fails | |
# shows 'exec /__e/node20/bin/node: no such file or directory' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: some-artifact | |
path: . |