Comments (8)
Was able to go around the issue by adding this before installing cargo via rustup:
mkdir ~/.cargo
mount -t tmpfs -o size=2048m tmpfs ~/.cargo
from run-on-arch-action.
Thanks for reporting this! I'm changing the title to make this workaround easier to find.
Hard to tell why changing the FS is enough to get around this, too many layers...
from run-on-arch-action.
Apparently there's a bug in ext4 when running a 32bit build within a 64bit host using qemu. tmpfs appears to have that bug fixed
from run-on-arch-action.
Hi @snshn can you provide more info on the job that is failing? I tried to replicate it with this job(armv7/ubuntu18.04) but it doesn't fail it seems. What am I doing wrong?
from run-on-arch-action.
I sadly used --amend while working on my action, but the one that you've posted looks extremely similar! I believe mine had ubuntu-latest in it, I'll try to reproduce that error in my private repo, will report here.
from run-on-arch-action.
Here it is, I found the job that produces the error:
gnu_linux_armv6:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Build and install the executable
uses: uraimo/[email protected]
id: runcmd
with:
architecture: armv6
distribution: buster
run: |
sudo apt-get update && apt-get install git
mkdir -p ~
git config --global http.sslverify false
git clone https://github.com/Y2Z/monolith.git
cd monolith
echo "--insecure" > ~/.curlrc
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
echo W25ldF0KZ2l0LWZldGNoLXdpdGgtY2xpID0gdHJ1ZQoKW2h0dHBdCmNoZWNrLXJldm9rZSA9IGZhbHNlCg== | base64 -d > ~/cargo/_config
PATH=$PATH:~/.cargo/bin cargo install --force --locked --path . --root .
gzip --best bin/monolith
echo ::set-output name=data::$(base64 bin/monolith.gz)
- name: Get the output
run: |
mkdir bin
echo ${{ steps.runcmd.outputs.data }} | zcat | base64 -d > bin/monolith-armv6
- uses: Shopify/[email protected]
with:
name: monolith-armv6
path: bin/monolith-armv6
repo-token: ${{ secrets.GITHUB_TOKEN }}
putting
mkdir ~/.cargo
mount -t tmpfs -o size=2048m tmpfs ~/.cargo
before the curl
line solved the problem for that ne, but I believe there were some other issues associated with it
from run-on-arch-action.
Thanks for taking the time to recover it!
I'll play around a bit to see if there is another filesystem that be used in similar fashion as a workaround.
from run-on-arch-action.
Glad I could be of help! I think it's quite an edge case, and not directly related to this project. Perhaps it's enough that we've documented it here for people to find it in the future and understand the root cause of that error message. Please feel free to close this issue at any point from now.
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.