Skip to content

Commit

Permalink
update cross compilation workflow (#274)
Browse files Browse the repository at this point in the history
* update cross compilation workflow

* version bump

* adding git to the build container
  • Loading branch information
diptanu authored Jan 27, 2024
1 parent f4e2ff0 commit 8c0eaf2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/publish_indexify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,19 @@ jobs:
name: indexify-linux-amd64
path: target/release/indexify
if-no-files-found: error

build-linux-aarch64-package:
name: Build Aarch64 Linux Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install nightly --component rustfmt
- run: cargo +nightly fmt --check
- run: make build-release-aarch64
- uses: actions/upload-artifact@v4
with:
name: indexify-linux-aarch64
path: target/aarch64-unknown-linux-gnu/release/indexify
if-no-files-found: error
build-macos-package:
name: Build macOS Package
runs-on: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "indexify"
version = "0.0.1"
version = "0.0.2"
edition = "2021"
authors = ["Diptanu Gon Choudhury <[email protected]>"]
build = "build.rs"
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/Dockerfile.cross
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install --assume-yes --no-install-recommends \
g++-aarch64-linux-gnu \
libc6-dev-arm64-cross protobuf-compiler
libc6-dev-arm64-cross protobuf-compiler git

ENV CROSS_TOOLCHAIN_PREFIX=aarch64-linux-gnu-
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER="$CROSS_TOOLCHAIN_PREFIX"gcc \
Expand Down

1 comment on commit 8c0eaf2

@vercel
Copy link

@vercel vercel bot commented on 8c0eaf2 Jan 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.