Giter Club home page Giter Club logo

Comments (8)

snshn avatar snshn commented on June 7, 2024 4

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.

uraimo avatar uraimo commented on June 7, 2024

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.

snshn avatar snshn commented on June 7, 2024

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.

uraimo avatar uraimo commented on June 7, 2024

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.

snshn avatar snshn commented on June 7, 2024

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.

snshn avatar snshn commented on June 7, 2024

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.

uraimo avatar uraimo commented on June 7, 2024

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.

snshn avatar snshn commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.