feat: add Rust cross-compilation dependencies
This commit is contained in:
parent
5babfad827
commit
e35490fd16
1 changed files with 6 additions and 2 deletions
|
@ -40,10 +40,12 @@ RUN set -eux; \
|
|||
curl -SsL --output /usr/share/keyrings/thetadev.gpg "https://thetadev.de/repo/thetadev.gpg"; \
|
||||
echo "2cca310dec333631005b6c033715e5b25e305e33be66eb4ba924619dab94d539 /usr/share/keyrings/thetadev.gpg" | sha256sum -c; \
|
||||
echo "deb [signed-by=/usr/share/keyrings/thetadev.gpg] https://thetadev.de/repo universal main\ndeb [signed-by=/usr/share/keyrings/thetadev.gpg] https://thetadev.de/repo bookworm main" > /etc/apt/sources.list.d/thetadev.list; \
|
||||
dpkg --add-architecture arm64 \
|
||||
apt-get update; \
|
||||
apt-get upgrade -y; \
|
||||
apt-get install -y --no-install-recommends sudo python-is-python3 python3-pip python3-poetry nano zip zstd brotli jq yq golangci-lint \
|
||||
rustup cargo-audit cargo-deny cargo-sqlx git-cliff just task pre-commit mdbook shellcheck; \
|
||||
rustup cargo-audit cargo-deny cargo-sqlx git-cliff just task pre-commit mdbook shellcheck \
|
||||
gcc-aarch64-linux-gnu libssl-dev libssl-dev:arm64; \
|
||||
apt-get clean; \
|
||||
npm install -g pnpm tsx
|
||||
|
||||
|
@ -67,7 +69,9 @@ RUN set -eux; \
|
|||
echo -e "5\ny\n" | gpg --no-tty --command-fd=0 --edit-key 86b02e72397343b766f005dd649ca4ebdc338394 trust; \
|
||||
git config --global user.name "Forgejo Actions"; \
|
||||
git config --global user.email "forgejo.actions@example.com"; \
|
||||
git config --global init.defaultBranch main
|
||||
git config --global init.defaultBranch main; \
|
||||
mkdir /home/ci/.cargo; \
|
||||
printf '[target.aarch64-unknown-linux-gnu]\nlinker = "aarch64-linux-gnu-gcc"' > /home/ci/.cargo/config.toml;
|
||||
|
||||
ENV PATH /usr/local/go/bin:/home/ci/go/bin:/home/ci/.cargo/bin:$PATH
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue