-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
130 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,11 @@ jobs: | |
toolchain: nightly # nightly is required for fmt | ||
components: rustfmt, clippy | ||
|
||
- name: Set up Cargo Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: false | ||
|
||
- name: Check | ||
run: cargo check | ||
|
||
|
@@ -33,9 +38,6 @@ jobs: | |
cargo fmt --all -- --check | ||
cargo clippy --workspace --bins -- -D warnings | ||
- name: Build Debug | ||
run: cargo build --verbose | ||
|
||
- name: Run tests | ||
run: cargo test --verbose | ||
|
||
|
@@ -68,12 +70,17 @@ jobs: | |
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Build Release | ||
run: cargo build --verbose --release | ||
- name: Set up Cargo Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: false | ||
|
||
- name: Run tests | ||
run: cargo test --workspace --verbose | ||
|
||
- name: Build Release | ||
run: cargo build --verbose --release | ||
|
||
- name: Run `ark-cli watch` test | ||
run: ./integration/ark-cli-watch.sh | ||
|
||
|
@@ -100,12 +107,17 @@ jobs: | |
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Build Release | ||
run: cargo build --verbose --release | ||
- name: Set up Cargo Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: false | ||
|
||
- name: Run tests | ||
run: cargo test --workspace --verbose | ||
|
||
- name: Build Release | ||
run: cargo build --verbose --release | ||
|
||
- name: Run `ark-cli watch` test | ||
run: ./integration/ark-cli-watch.sh | ||
|
||
|
@@ -121,3 +133,58 @@ jobs: | |
- name: Java tests | ||
run: gradle test | ||
working-directory: ./java | ||
|
||
android: | ||
name: Build on Linux for Android | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android | ||
|
||
- name: Set up Cargo Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: false | ||
|
||
- name: Run tests | ||
run: cargo test --workspace --verbose | ||
|
||
- name: Build Release | ||
run: cargo build --verbose --release | ||
|
||
- name: Install JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: "temurin" | ||
java-version: "22" | ||
|
||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Java tests | ||
run: gradle test | ||
working-directory: ./java | ||
|
||
# Upload fs-storage JNI libs | ||
- name: Install cargo-ndk | ||
run: cargo install cargo-ndk | ||
|
||
- name: Build fs-storage JNI libs | ||
run: cargo ndk -o ./target/release/fs-storage/jniLibs --target aarch64-linux-android --target armv7-linux-androideabi --target i686-linux-android --target x86_64-linux-android build -p fs-storage --release | ||
|
||
- name: Upload fs-storage JNI libs | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: fs-storage-jni-libs | ||
path: ./target/release/fs-storage/jniLibs | ||
|
||
- name: Publish Java release | ||
run: gradle publish | ||
working-directory: ./java | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters