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

[Native] Support linux aarch64 #492

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/consistency-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -93,7 +93,7 @@ jobs:
with:
use-cross: true
command: build
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --all-features'
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release'
- name: Build with Maven
run: |
mkdir -p rust/target/release
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -37,7 +37,7 @@ jobs:
with:
use-cross: true
command: build
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --all-features'
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --features hdfs'
- uses: actions/upload-artifact@v4
with:
name: lakesoul-nativeio-x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -65,15 +65,15 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
workspaces: "./rust -> target"
- uses: actions-rs/cargo@v1
with:
command: build
args: '--manifest-path rust/Cargo.toml --release --all-features'
args: '--manifest-path rust/Cargo.toml --release --features hdfs'
- uses: actions/upload-artifact@v4
with:
name: lakesoul-nativeio-x86_64-pc-windows-msvc
Expand Down Expand Up @@ -103,15 +103,15 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
workspaces: "./rust -> target"
- uses: actions-rs/cargo@v1
with:
command: build
args: '--manifest-path rust/Cargo.toml --release --all-features'
args: '--manifest-path rust/Cargo.toml --release --features hdfs'
- uses: actions/upload-artifact@v4
with:
name: lakesoul-nativeio-x86_64-apple-darwin
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flink-cdc-hdfs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -85,7 +85,7 @@ jobs:
with:
use-cross: true
command: build
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --all-features'
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --features hdfs'
- name: Build with Maven
run: |
mkdir -p rust/target/release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/flink-cdc-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -87,7 +87,7 @@ jobs:
with:
use-cross: true
command: build
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --all-features'
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release'
- name: Build with Maven
run: |
mkdir -p rust/target/release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -56,7 +56,7 @@ jobs:
with:
use-cross: true
command: build
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --all-features'
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --features hdfs'
- uses: actions/upload-artifact@v4
with:
name: lakesoul-nativeio-x86_64-unknown-linux-gnu-maven-test
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/native-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -50,7 +50,7 @@ jobs:
with:
use-cross: true
command: build
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --all-features'
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --features hdfs'
- uses: actions/upload-artifact@v4
with:
name: lakesoul-nativeio-x86_64-unknown-linux-gnu
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -87,7 +87,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: build
args: '--manifest-path rust/Cargo.toml --release --all-features'
args: '--manifest-path rust/Cargo.toml --release --features hdfs'
- uses: actions/upload-artifact@v4
with:
name: lakesoul-nativeio-x86_64-pc-windows-msvc
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -126,7 +126,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: build
args: '--manifest-path rust/Cargo.toml --release --all-features'
args: '--manifest-path rust/Cargo.toml --release --features hdfs'
- uses: actions/upload-artifact@v4
with:
name: lakesoul-nativeio-x86_64-apple-darwin
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/presto-cdc-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
default: true
- uses: Swatinem/rust-cache@v2
with:
Expand All @@ -87,7 +87,7 @@ jobs:
with:
use-cross: true
command: build
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release --all-features'
args: '--manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu --release'
- name: Build with Maven
run: |
mkdir -p rust/target/release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-20
toolchain: stable
components: clippy
default: true
- name: Install Protoc
Expand All @@ -42,5 +42,5 @@ jobs:
workspaces: "./rust -> target"
key: "ubuntu-latest-clippy"
- name: Run Clippy
run: cd rust && cargo clippy --no-deps --all-features --package lakesoul-io-c --package lakesoul-metadata-c
run: cd rust && cargo clippy --no-deps --features hdfs --package lakesoul-io-c --package lakesoul-metadata-c

8 changes: 6 additions & 2 deletions lakesoul-flink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ SPDX-License-Identifier: Apache-2.0
<include>org.furyio:fury-core</include>
<include>com.google.guava:guava</include>
<include>com.google.guava:failureaccess</include>
<include>org.eclipse.collections:*</include>

<!-- casbin & aspectj -->
<include>org.casbin:jdbc-adapter</include>
Expand Down Expand Up @@ -483,9 +484,12 @@ SPDX-License-Identifier: Apache-2.0
</excludes>
</filter>
<filter>
<artifact>org.apache.arrow:arrow-c-data</artifact>
<artifact>*:*</artifact>
<excludes>
<exclude>org/apache/arrow/c/jni/JniLoader.class</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/versions/**</exclude>
</excludes>
</filter>
</filters>
Expand Down
8 changes: 6 additions & 2 deletions lakesoul-spark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ SPDX-License-Identifier: Apache-2.0
<include>org.postgresql:postgresql</include>
<include>com.alibaba:fastjson</include>
<include>mysql:mysql-connector-java</include>
<include>org.eclipse.collections:*</include>

<!-- casbin & aspectj -->
<include>org.casbin:jdbc-adapter</include>
Expand All @@ -497,9 +498,12 @@ SPDX-License-Identifier: Apache-2.0
</artifactSet>
<filters>
<filter>
<artifact>org.apache.arrow:arrow-c-data</artifact>
<artifact>*:*</artifact>
<excludes>
<exclude>org/apache/arrow/c/jni/JniLoader.class</exclude>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
<exclude>META-INF/versions/**</exclude>
</excludes>
</filter>
</filters>
Expand Down
16 changes: 9 additions & 7 deletions native-io/lakesoul-io-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SPDX-License-Identifier: Apache-2.0
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<arrow.version>12.0.0</arrow.version>
<arrow.version>15.0.2</arrow.version>
<scalatest.version>3.1.0</scalatest.version>
<substrait.version>0.28.0</substrait.version>
<protobuf.version>3.22.0</protobuf.version>
Expand Down Expand Up @@ -95,6 +95,14 @@ SPDX-License-Identifier: Apache-2.0
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
<version>${substrait.version}</version>
<scope>compile</scope>
Expand Down Expand Up @@ -584,12 +592,6 @@ SPDX-License-Identifier: Apache-2.0
<exclude>META-INF/versions/**</exclude>
</excludes>
</filter>
<filter>
<artifact>org.apache.arrow:arrow-c-data</artifact>
<excludes>
<exclude>org/apache/arrow/c/jni/JniLoader.class</exclude>
</excludes>
</filter>
</filters>
<relocations>
<relocation>
Expand Down
Loading
Loading