From a5ea194931117e1bf18a48118a5e930f58b7ada6 Mon Sep 17 00:00:00 2001 From: Li Zhineng Date: Sat, 6 Jul 2024 15:29:39 +0800 Subject: Continuous Integration (#3) * ci * remove branch limits * publish workflow * specify working directory * install libssl-dev on ubuntu-latest * drop x86_64-unknown-linux-musl * fix tar * list files * prefix working directory * install openssl * use cross * fix section * remove openssl * use edge images * quoted * edge image for aarch64-unknown-linux-gnu * custom dockerfile * build-essential && remove CAMKE* * combine pre-build with target * fix package not found * install pkg-config * remove build-essential * install build-essential * $CROSS_DEB_ARCH * fix arch * remove openssl * remove file listing * remove prefixed path * use actions/upload-artifact@v4 * fix upload step * Revert "fix upload step" This reverts commit da9814e42ce568a1b0707f23df02696ad373dc22. * Revert "use actions/upload-artifact@v4" This reverts commit 0bcc2486c6a4bd4fc865eedb458098724ae6b88d. * Revert "remove prefixed path" This reverts commit 620b985b18e84cf97e40695c9852762c853434b6. * Revert "fix tar" This reverts commit a013b23161e0b9193161e57f9a878b04b2eba874. * remove -p for mkdir * add target: x86_64-apple-darwin --- decryptor/Cargo.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'decryptor/Cargo.toml') diff --git a/decryptor/Cargo.toml b/decryptor/Cargo.toml index 80d0338..df38d4d 100644 --- a/decryptor/Cargo.toml +++ b/decryptor/Cargo.toml @@ -6,3 +6,14 @@ edition = "2021" [dependencies] hex = "0.4.3" openssl = "0.10.64" + +[package.metadata.cross.target.aarch64-unknown-linux-gnu] +dockerfile = "../docker/Dockerfile.aarch64-unknown-linux-gnu" +pre-build = [ + "sed 's/^deb http/deb [arch=amd64] http/' -i '/etc/apt/sources.list'", + "echo 'deb [arch=arm64] http://au.archive.ubuntu.com/pub/ubuntu/ports jammy main restricted universe multiverse' >> /etc/apt/sources.list", + "echo 'deb [arch=arm64] http://au.archive.ubuntu.com/pub/ubuntu/ports jammy-updates main restricted universe multiverse' >> /etc/apt/sources.list", + "echo 'deb [arch=arm64] http://au.archive.ubuntu.com/pub/ubuntu/ports jammy-backports main restricted universe multiverse' >> /etc/apt/sources.list", + "dpkg --add-architecture $CROSS_DEB_ARCH", + "apt-get update && apt-get -y install build-essential pkg-config libssl-dev:$CROSS_DEB_ARCH" +] -- cgit v1.2.3