mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Run more tests in CI
This commit is contained in:
parent
9c5dc1965b
commit
3f821e7f66
4
.github/actions/android/action.yml
vendored
4
.github/actions/android/action.yml
vendored
@ -24,3 +24,7 @@ runs:
|
||||
env "AR_aarch64-linux-android=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar" \
|
||||
env "CC_aarch64-linux-android=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android30-clang" \
|
||||
just check maplibre-android aarch64-linux-android
|
||||
- name: Test
|
||||
shell: bash
|
||||
# TODO: Additional test runs for different targets
|
||||
run: just test maplibre-android aarch64-linux-android
|
||||
6
.github/actions/apple/action.yml
vendored
6
.github/actions/apple/action.yml
vendored
@ -24,8 +24,12 @@ runs:
|
||||
run: just check apple x86_64-apple-darwin
|
||||
- name: Check aarch64 darwin
|
||||
shell: bash
|
||||
# TODO: Additional clippy checks for different targets (iOS)
|
||||
run: just check apple aarch64-apple-darwin
|
||||
# TODO: Additional clippy checks for iOS
|
||||
- name: Test
|
||||
shell: bash
|
||||
# TODO: Additional test runs for different targets
|
||||
run: just test apple aarch64-apple-darwin
|
||||
- name: Build Example
|
||||
shell: bash
|
||||
run: cd apple/xcode && xcodebuild -scheme "example (iOS)" -arch arm64 -sdk iphoneos build CODE_SIGNING_ALLOWED=NO
|
||||
|
||||
4
.github/actions/demo/macos/action.yml
vendored
4
.github/actions/demo/macos/action.yml
vendored
@ -19,6 +19,10 @@ runs:
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: cd apple/xcode && xcodebuild -scheme "example (macOS)" build CODE_SIGNING_ALLOWED=NO MACOSX_DEPLOYMENT_TARGET=10.9 -derivedDataPath build
|
||||
- name: Test
|
||||
shell: bash
|
||||
# TODO: Additional test runs for different targets
|
||||
run: just test apple aarch64-apple-darwin
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: maplibre-x86_64-apple-darwin-demo
|
||||
|
||||
18
.github/actions/tests/action.yml
vendored
Normal file
18
.github/actions/tests/action.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
name: tests
|
||||
description: Run tests
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: just default-toolchain
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- name: Install Dependencies
|
||||
shell: bash
|
||||
run: sudo apt-get install -y libwayland-dev libxkbcommon-dev # Required for winit
|
||||
- name: Test
|
||||
shell: bash
|
||||
# TODO: Additional test runs for different targets
|
||||
run: just test maplibre x86_64-unknown-linux-gnu
|
||||
5
.github/actions/webgpu/action.yml
vendored
5
.github/actions/webgpu/action.yml
vendored
@ -17,4 +17,7 @@ runs:
|
||||
run: just web-demo build
|
||||
- name: Check
|
||||
shell: bash
|
||||
run: just check web wasm32-unknown-unknown
|
||||
run: just check web wasm32-unknown-unknown
|
||||
- name: Check
|
||||
shell: bash
|
||||
run: just test web wasm32-unknown-unknown
|
||||
|
||||
5
.github/workflows/on_main_push.yml
vendored
5
.github/workflows/on_main_push.yml
vendored
@ -17,6 +17,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/benchmarks
|
||||
run-tests:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/tests
|
||||
build-android:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
|
||||
5
.github/workflows/on_pull_request.yml
vendored
5
.github/workflows/on_pull_request.yml
vendored
@ -17,6 +17,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/benchmarks
|
||||
run-tests:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ./.github/actions/tests
|
||||
build-android:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user