Skip to content

Commit

Permalink
Merge pull request #74 from tsirysndr/feat/aarch64-unknown-linux-gnu-…
Browse files Browse the repository at this point in the history
…support

feat: add support for `aarch64-unknown-gnu-linux`
  • Loading branch information
tsirysndr committed Dec 8, 2023
2 parents ad04e25 + 23f69f4 commit 1c70228
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 4 deletions.
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

0 comments on commit 1c70228

Please sign in to comment.