Comments (3)
Hi, please upgrade to 2.1.1 and let me know if everything works as expected, thanks!
from run-on-arch-action.
It's not yet working. I did a small test:
jobs:
test-github-env:
steps:
- uses: uraimo/[email protected]
with:
arch: armv6
distro: buster
run: echo "FOO=42" >> $GITHUB_ENV
- run: echo $FOO
While the variable is set to point to the correct "kind of " file, that file was apparently not mapped into the container or it already changed because of multiple shell invocations. Its UUID suffix indicates its temporary nature:
/home/runner/work/_actions/uraimo/run-on-arch-action/v2.1.1/src/run-on-arch-commands.sh: line 5: /home/runner/work/_temp/_runner_file_commands/set_env_e40c0415-7014-4b2b-8d23-2417768e307e: No such file or directory
Error: The process '/home/runner/work/_actions/uraimo/run-on-arch-action/v2.1.1/src/run-on-arch.sh' failed with exit code 1
Now I wonder whether it is possible to forward $GITHUB_ENV
at some later point in the scripts. I did some more tests that show the volatile nature of $GITHUB_ENV
. The following steps were executed in order in a single job:
- Regular bash script;
echo "GITHUB_ENV=$GITHUB_ENV"
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_6718de84-a08e-45fa-b855-24040844fc12
- Regular bash script;
echo "GITHUB_ENV=$GITHUB_ENV"
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_95b47c92-f8a9-4636-a993-f8955c580597
- Install script (run-on-arch);
echo "GITHUB_ENV=$GITHUB_ENV"
/root/run-on-arch-install.sh: line 5: GITHUB_ENV: unbound variable
- Setup script (run-on-arch);
echo "GITHUB_ENV=$GITHUB_ENV"
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_63cda160-76bb-41c3-b532-04793d73c622
- Run script (run-on-arch);
echo "GITHUB_ENV=$GITHUB_ENV"
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_63cda160-76bb-41c3-b532-04793d73c622
- Regular bash script;
echo "GITHUB_ENV=$GITHUB_ENV"
GITHUB_ENV=/home/runner/work/_temp/_runner_file_commands/set_env_ae2c0031-c7ce-4ebb-891e-70f8d703f65c
I am not sure how to proceed from here. I think you would need to rebind $GITHUB_ENV
again before running the "setup script" and again before running the "run script".
from run-on-arch-action.
Hi,
At @marceltaeumel, thank you for the excellent report.
At @uraimo, very nice github action, thank you very much.
At all:
I fixed it here thank to your list of path.
dockerRunArgs: |
--volume /home/runner/work/_temp:/home/runner/work/_temp
Bye.
from run-on-arch-action.
Related Issues (20)
- can't use cargo in this action HOT 3
- nodejs cef build is failed HOT 1
- /root/run-on-arch-install.sh: not found HOT 5
- Multiple steps in a job HOT 7
- Support for actions steps instead of just shell commands HOT 1
- Error while setting up Go
- Failure to find and start dockers HOT 1
- The requested image's platform does not match the detected host platform HOT 1
- Need pinned Alpine Linux versions, e.g., v3.17 HOT 2
- not enough free disk space? HOT 4
- githubToken is required HOT 1
- Tag error for version 2.5.1 =>v.2.5.1 HOT 1
- Container always rebuilt HOT 2
- How can I copy files to host?
- Mounted Volume only gets updated after the `run` step completed HOT 1
- Using distrobuilder in ubuntu_latest on aarch64 will give an error( Failed to unshare namespaces: Operation not permitted ) HOT 2
- ::engroup::missing?
- Create new alpine targets, issue on alpine_latest distro. HOT 6
- Add support for ubuntu/i306
- Install Commands without GitHub Token not Executed HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from run-on-arch-action.