Skip to content
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

feat: add support for aarch64-unknown-gnu-linux #74

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .fluentci/src/dagger/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,24 @@ export const build = async (src = ".") => {
.container()
.from("rust:1.73-bullseye")
.withExec(["apt-get", "update"])
.withExec(["apt-get", "install", "-y", "build-essential"])
.withExec([
"apt-get",
"install",
"-y",
"build-essential",
"gcc-aarch64-linux-gnu",
])
.withDirectory("/app", context, { exclude })
.withWorkdir("/app")
.withMountedCache("/app/target", client.cacheVolume("target"))
.withMountedCache("/root/cargo/registry", client.cacheVolume("registry"))
.withMountedCache("/assets", client.cacheVolume("gh-release-assets"))
.withEnvVariable(
"CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER",
Deno.env.get("TARGET") === "aarch64-unknown-linux-gnu"
? "aarch64-linux-gnu-gcc"
: ""
)
.withEnvVariable("TAG", Deno.env.get("TAG") || "latest")
.withEnvVariable(
"TARGET",
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
strategy:
matrix:
target:
- aarch64-unknown-linux-gnu
- x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT"
name = "crosup"
readme = "../../README.md"
repository = "https://github.com/tsirysndr/crosup"
version = "0.5.0"
version = "0.5.1"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
inherit src;

pname = "crosup";
version = "0.5.0";
version = "0.5.1";
cargoExtraArgs = "--package=crosup";

buildInputs = [
Expand Down
11 changes: 10 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ if [ "$OS" = "Darwin" ]; then
ASSET_NAME="_x86_64-apple-darwin.tar.gz"
fi
elif [ "$OS" = "Linux" ]; then
ASSET_NAME="_x86_64-unknown-linux-gnu.tar.gz"
# Determine the CPU architecture
ARCH=$(uname -m)
if [ "$ARCH" = "aarch64" ]; then
ASSET_NAME="_aarch64-unknown-linux-gnu.tar.gz"
elif [ "$ARCH" = "x86_64" ]; then
ASSET_NAME="_x86_64-unknown-linux-gnu.tar.gz"
else
echo "Unsupported architecture: $ARCH"
exit 1
fi
else
echo "Unsupported operating system: $OS"
exit 1
Expand Down