mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Add CI
This commit is contained in:
parent
228966a739
commit
93867d430b
49
.github/workflows/rust.yml
vendored
49
.github/workflows/rust.yml
vendored
@ -2,12 +2,9 @@ name: Rust
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build-x86:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: macOS-11
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
@ -25,7 +22,7 @@ jobs:
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Install Dependencies
|
||||
run: sudo apt-get install -y libwayland-client++0
|
||||
run: sudo apt-get install -y libwayland-client++0 libwayland-client
|
||||
- name: Build
|
||||
run: cargo build --bin mapr
|
||||
- uses: actions/upload-artifact@v2
|
||||
@ -33,6 +30,48 @@ jobs:
|
||||
name: mapr
|
||||
path: target/debug/mapr
|
||||
|
||||
build-macos:
|
||||
runs-on: macOS-11
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Build
|
||||
run: xcodebuild -scheme "mapr (macOS)" -arch arm64 build
|
||||
|
||||
build-iphonesimulator:
|
||||
runs-on: ubuntu-20.04
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: 'recursive'
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
~/.cargo/registry/index/
|
||||
~/.cargo/registry/cache/
|
||||
~/.cargo/git/db/
|
||||
target/
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Build
|
||||
run: xcodebuild -scheme "mapr (iOS)" -arch arm64 -sdk iphonesimulator build
|
||||
|
||||
build-aarch64-android:
|
||||
runs-on: ubuntu-20.04
|
||||
defaults:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user