- Notifications
You must be signed in to change notification settings - Fork286
Open
Description
Hello, I am trying to run a workflow to make a deb file for a Flutter project that communicates with Rust. We have some private repos that are being called in our project as dependencies.
According to the documentation this works for Windows I tried adding it to my workflow as wellhttps://github.com/marketplace/actions/webfactory-ssh-agent#cargos-rust-private-dependencies-on-windows but I am still get an error for some reason:
name:Building App on Linuxon:push:branches: -workflowsjobs:build:runs-on:ubuntu-lateststeps: -uses:actions/checkout@v4 -name:Configure git to use SSHrun:| git config --global url."ssh://git@github.com/".insteadOf "https://github.com/" -name:Give GitHub Actions access to Crate 1 Repouses:webfactory/ssh-agent@v0.9.0with:ssh-private-key:${{ secrets.CRATE1DEPLOYKEY }} -name:Give GitHub Actions access to Crate 2 Repouses:webfactory/ssh-agent@v0.9.0with:ssh-private-key:${{ secrets.CRATE2DEPLOYKEY }} -name:Give GitHub Actions access to Crate 3 Repouses:webfactory/ssh-agent@v0.9.0with:ssh-private-key:${{ secrets.CRATE3DEPLOYKEY }} -name:Give GitHub Actions access to Crate 4 Repouses:webfactory/ssh-agent@v0.9.0with:ssh-private-key:${{ secrets.CRATE4DEPLOYKEY }} -name:Add GitHub to known hostsrun:| mkdir -p ~/.ssh ssh-keyscan github.com >> ~/.ssh/known_hosts -name:Update cargo config to use Git CLIrun:echo -e "[net]\ngit-fetch-with-cli = true" > ~/.cargo/config.toml -uses:subosito/flutter-action@v2with:flutter-version:"3.x"cache:truechannel:stable -name:Install dependenciesrun:| flutter pub get sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev -name:Build Linux Distributionrun:| dart pub global activate flutter_distributor flutter_distributor release --name=dev --jobs=release-dev-linux-deb -name:Upload Distributionuses:actions/upload-artifact@v2with:name:linux-debpath:dist/
The Cargo.toml file:
[package]name ="app"version ="0.1.0"edition ="2021"[lib]crate-type = ["cdylib","staticlib"][dependencies]flutter_rust_bridge ="=2.1.0"anyhow ="1.0.86"lazy_static ="1.5.0"plotters ="0.3.6"rustfft ="6.2.0"CRATE1= {git ="ssh://git@github.com/{Crate1Repo}.git" }CRATE2= {git ="ssh://git@github.com/{Crate2Repo}.git" }CRATE3= {git ="ssh://git@github.com/{Crate3Repo}.git" }CRATE4= {git ="ssh://git@github.com/{Crate4Repo}.git" }
The error I get when the workflow gets to the step of Building the Linux distribution:SEVERE: error: failed to get `CRATE1` as a dependency of package `app v0.1.0
I'm hoping to get some insight on what I'm doing wrong and guidance.
Metadata
Metadata
Assignees
Labels
No labels