-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust build possibly running out of RAM #77
Comments
Well, never mind, I just run the
I really don't know what the issue could be now |
I executed + df -h
Filesystem Size Used Avail Use% Mounted on
/dev/loop3p2 11G 4.1G 6.0G 41% /
/dev/loop3p1 127M 32M 96M 26% /boot
devtmpfs 3.4G 0 3.4G 0% /dev
+ cargo install tauri-cli After I execute the |
I'm doing it like this for the GH runner: - name: Increase free space
# Remove Android and dotnet
run: |
df -h
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/share/dotnet
df -h I see that you set |
Unfortunately, even when doubling the size, I get the same error |
This seems to be related: But the workaround (cleaning up registry), didn't work unfortunately. |
What you are saying is that this issue is more likely related to Rust not being able to download some crates, right? |
The issue is Rust related. It's not that it cannot download crates but rather that it cannot download the index. See https://github.com/pguyot/Raspirus/actions/runs/5039610464/jobs/9037866452 Source for the workaround: libp2p/rust-libp2p#3782 (comment) |
Intro
I am creating a Tauri app. It has a frontend in Next.js and the backend in Rust. Using the Tauri command with cargo, I can build the project for different platforms like Ubuntu, Windows and Mac. Unfortunately, I am not able to compile the project for the Raspberry Pi because it has a different chip architecture. Therefore, I wanted to use your runner to try and build it using GitHub actions.
Problem
When I execute the GitHub action, everything seems to work fine, up until it tries to install tauri with the cargo command:
cargo install tauri-cli
. Then it starts compiling the needed dependencies and eventually fails because it doesn't have enough RAM to continue. It doesn't say that it doesn't have enough RAM, but when I tried to install tauri on my Raspberry Pi 3B+ with 1 GB of RAM, I encountered the same error. I solved it by increasing swap to 4 GB.GitHub action
Action error
Last couple of lines of the output from the GitHub actions:
The text was updated successfully, but these errors were encountered: