-
Notifications
You must be signed in to change notification settings - Fork 14
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
18 changed files
with
249 additions
and
223 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 |
---|---|---|
|
@@ -47,12 +47,6 @@ jobs: | |
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
|
||
- name: Setup NDK | ||
run: make install-ndk | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v3 | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
|
@@ -64,8 +58,17 @@ jobs: | |
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Install just | ||
run: cargo install just | ||
|
||
- name: Setup NDK | ||
run: just install-ndk | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v3 | ||
|
||
- name: Build Android Bindings | ||
run: | | ||
df -h | ||
make prepare-android && make bindgen-kotlin | ||
make android | ||
just install-android-targets | ||
just bindgen-kotlin && just build-android |
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,4 +1,4 @@ | ||
name: iOS CI | ||
name: Gemstone iOS | ||
|
||
on: | ||
push: | ||
|
@@ -36,10 +36,14 @@ jobs: | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Install just | ||
run: cargo install just | ||
|
||
- name: Run tests | ||
run: cargo test | ||
|
||
- name: Test iOS | ||
run: | | ||
make prepare-apple && make apple | ||
make test-ios | ||
just install-ios-targets | ||
just build-ios && just test-ios |
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 |
---|---|---|
|
@@ -30,4 +30,5 @@ jobs: | |
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: Run tests | ||
run: cargo test --all --verbose | ||
run: | | ||
cargo install just && just test-all |
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 |
---|---|---|
|
@@ -46,7 +46,8 @@ jobs: | |
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: Install diesel | ||
run: make install-diesel | ||
run: | | ||
cargo install just && just install-diesel | ||
- name: Run migration | ||
run: | | ||
diesel setup | ||
|
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 |
---|---|---|
|
@@ -49,10 +49,13 @@ jobs: | |
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Install just | ||
run: cargo install just | ||
|
||
- name: Build iOS frameworks | ||
run: | | ||
make prepare-apple | ||
make apple BUILD_MODE=${{ env.BUILD_MODE }} IPHONEOS_DEPLOYMENT_TARGET=${{ env.IPHONEOS_DEPLOYMENT_TARGET }} | ||
just install-ios-targets | ||
export BUILD_MODE=${{ env.BUILD_MODE }} IPHONEOS_DEPLOYMENT_TARGET=${{ env.IPHONEOS_DEPLOYMENT_TARGET }} && just build-ios | ||
working-directory: gemstone | ||
|
||
- name: Zip iOS framework | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,42 +1,6 @@ | ||
install: install-rust install-typeshare install-postgres install-diesel | ||
@echo Install Rust | ||
@curl curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
install: install-rust | ||
|
||
install-rust: | ||
@echo Install Rust | ||
@curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
@cargo install cargo-machete | ||
|
||
install-typeshare: | ||
@echo Install typeshare-cli | ||
@cargo install typeshare-cli --version 1.11.0 --force | ||
|
||
install-diesel: | ||
@cargo install diesel_cli --no-default-features --features postgres --version 2.2.4 --force | ||
|
||
install-postgres: | ||
brew install libpq postgresql@15 | ||
brew link postgresql@15 | ||
export LDFLAGS="-L/opt/homebrew/opt/libpq/lib" | ||
export CPPFLAGS="-I/opt/homebrew/opt/libpq/include" | ||
|
||
test: | ||
cargo test --workspace --quiet | ||
|
||
format: | ||
cargo fmt -q --all | ||
|
||
lint: | ||
cargo clippy --version | ||
cargo clippy -- -D warnings | ||
fix: | ||
cargo clippy --fix --allow-dirty --allow-staged --workspace --quiet | ||
|
||
unused: | ||
cargo machete | ||
|
||
migrate: | ||
diesel migration run | ||
|
||
localize: | ||
@sh scripts/localize.sh core crates/localizer/i18n | ||
@curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
cargo install just |
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
Oops, something went wrong.