mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Upgrade GitHub actions
This commit is contained in:
parent
69e404cb60
commit
911b39cc68
14
.github/workflows/build-deploy-docs.yml
vendored
14
.github/workflows/build-deploy-docs.yml
vendored
@ -13,12 +13,12 @@ jobs:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: just stable-toolchain
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Setup mdBook
|
||||
uses: peaceiris/actions-mdbook@v1
|
||||
- name: Install Dependencies
|
||||
@ -31,11 +31,11 @@ jobs:
|
||||
- name: API Documentation
|
||||
shell: bash
|
||||
run: cargo doc -p maplibre --no-deps --lib --document-private-items
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: api-docs
|
||||
path: target/doc/
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: book
|
||||
path: docs/book/
|
||||
@ -45,14 +45,14 @@ jobs:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Download api-docs
|
||||
uses: actions/download-artifact@v2
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: api-docs
|
||||
path: artifacts/api
|
||||
- name: Download book
|
||||
uses: actions/download-artifact@v2
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: book
|
||||
path: artifacts/book
|
||||
|
||||
6
.github/workflows/demo-linux.yml
vendored
6
.github/workflows/demo-linux.yml
vendored
@ -8,14 +8,14 @@ jobs:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: |
|
||||
just stable-toolchain
|
||||
just stable-targets x86_64-unknown-linux-gnu
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Install Dependencies
|
||||
shell: bash
|
||||
run: sudo apt-get install -y libwayland-dev libxkbcommon-dev # Required for winit
|
||||
@ -28,7 +28,7 @@ jobs:
|
||||
- name: Test x86_64 linux
|
||||
shell: bash
|
||||
run: just test maplibre-demo x86_64-unknown-linux-gnu
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: maplibre-rs
|
||||
path: target/x86_64-unknown-linux-gnu/release/maplibre-demo
|
||||
|
||||
4
.github/workflows/demo-macos.yml
vendored
4
.github/workflows/demo-macos.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
||||
name: Build
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: extractions/setup-just@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@ -17,7 +17,7 @@ jobs:
|
||||
run: |
|
||||
just stable-toolchain
|
||||
just stable-targets x86_64-apple-darwin
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: cd apple/xcode && xcodebuild -scheme "example (macOS)" build CODE_SIGNING_ALLOWED=NO MACOSX_DEPLOYMENT_TARGET=10.9 -derivedDataPath build
|
||||
|
||||
4
.github/workflows/demo-windows.yml
vendored
4
.github/workflows/demo-windows.yml
vendored
@ -8,14 +8,14 @@ jobs:
|
||||
name: Build
|
||||
runs-on: windows-2022
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: |
|
||||
just stable-toolchain
|
||||
just stable-targets x86_64-pc-windows-msvc
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- uses: ilammy/msvc-dev-cmd@v1 # Provide access to lib.exe
|
||||
- name: Build
|
||||
shell: bash
|
||||
|
||||
4
.github/workflows/library-android.yml
vendored
4
.github/workflows/library-android.yml
vendored
@ -8,14 +8,14 @@ jobs:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install nightly toolchain
|
||||
shell: bash
|
||||
run: |
|
||||
just nightly-toolchain
|
||||
just nightly-targets x86_64-linux-android aarch64-linux-android i686-linux-android
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Set NDK Version
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
4
.github/workflows/library-apple.yml
vendored
4
.github/workflows/library-apple.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
||||
name: Build
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: extractions/setup-just@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
@ -18,7 +18,7 @@ jobs:
|
||||
run: |
|
||||
just stable-toolchain
|
||||
just stable-targets x86_64-apple-darwin aarch64-apple-darwin x86_64-apple-ios aarch64-apple-ios aarch64-apple-ios-sim
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: just xcodebuild-xcframework
|
||||
|
||||
10
.github/workflows/library-web.yml
vendored
10
.github/workflows/library-web.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install nightly toolchain
|
||||
shell: bash
|
||||
@ -43,7 +43,7 @@ jobs:
|
||||
run: |
|
||||
# Install wasm-bindgen with test runner
|
||||
cargo install wasm-bindgen-cli # We want the latest version, as Cargo uses the latest version of wasm-bindgen
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Build lib
|
||||
shell: bash
|
||||
run: just web-lib build --release ${{ inputs.webgl && '--webgl' || '' }} ${{ inputs.multithreaded && '--multithreaded' || '' }}
|
||||
@ -56,7 +56,7 @@ jobs:
|
||||
- name: Test
|
||||
shell: bash
|
||||
run: just web-test "web-webgl"
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: web/demo/dist/
|
||||
@ -67,8 +67,8 @@ jobs:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/download-artifact@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: demo
|
||||
|
||||
4
.github/workflows/run-benchmarks.yml
vendored
4
.github/workflows/run-benchmarks.yml
vendored
@ -8,14 +8,14 @@ jobs:
|
||||
name: Benchmark
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: |
|
||||
just stable-toolchain
|
||||
just stable-targets x86_64-unknown-linux-gnu
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Install GPU Drivers
|
||||
uses: ./.github/actions/install-driver
|
||||
- name: Download test data
|
||||
|
||||
4
.github/workflows/run-checks.yml
vendored
4
.github/workflows/run-checks.yml
vendored
@ -8,12 +8,12 @@ jobs:
|
||||
name: Check
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: just stable-toolchain
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Format
|
||||
shell: bash
|
||||
run: just fmt-check
|
||||
|
||||
4
.github/workflows/run-tests.yml
vendored
4
.github/workflows/run-tests.yml
vendored
@ -8,14 +8,14 @@ jobs:
|
||||
name: Test
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Install toolchain
|
||||
shell: bash
|
||||
run: |
|
||||
just stable-toolchain
|
||||
just stable-targets x86_64-unknown-linux-gnu
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Install GPU Drivers
|
||||
uses: ./.github/actions/install-driver
|
||||
- name: Test Vulkan
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user