-
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
16 changed files
with
343 additions
and
128 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
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Cache build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
linux: | ||
name: Linux | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Set up Cargo Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: true | ||
|
||
- name: Run tests | ||
run: cargo test --workspace --verbose --release | ||
|
||
windows: | ||
name: Windows | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Set up Cargo Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: true | ||
|
||
- name: Run tests | ||
run: cargo test --workspace --verbose --release | ||
|
||
mac-intel: | ||
name: MacOS Intel | ||
runs-on: macos-14 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Set up Cargo Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: true | ||
|
||
- name: Run tests | ||
run: cargo test --workspace --verbose --release | ||
|
||
mac-arm: | ||
name: MacOS ARM | ||
runs-on: macos-13-xlarge | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Set up Cargo Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
save-if: true | ||
|
||
- name: Run tests | ||
run: cargo test --workspace --verbose --release |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
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: Install JDK | ||
uses: actions/[email protected] | ||
with: | ||
distribution: "temurin" | ||
java-version: "22" | ||
|
||
- name: Set up Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
|
||
- name: Set up Android SDK | ||
uses: android-actions/setup-android@v3 | ||
|
||
- name: Set up Android NDK | ||
uses: nttld/setup-ndk@v1 | ||
with: | ||
link-to-sdk: true | ||
ndk-version: r28-beta1 | ||
|
||
- name: Java tests | ||
run: gradle test | ||
working-directory: ./java | ||
|
||
- name: Publish Java release | ||
run: gradle publish | ||
working-directory: ./java | ||
env: | ||
RELEASE_VERSION: ${{ github.ref_name }} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Ignore Gradle project-specific cache directory | ||
.gradle | ||
.local.properties | ||
|
||
# Ignore Gradle build output directory | ||
build | ||
*.log | ||
*.log |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
buildscript { | ||
repositories { | ||
google() | ||
gradlePluginPortal() | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
} | ||
dependencies { | ||
classpath libs.gradle | ||
classpath libs.rust.android | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
gradlePluginPortal() | ||
maven { url "https://jitpack.io" } | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
} | ||
} |
Oops, something went wrong.