mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Upgrade to Ubuntu 22 in CI (#215)
* Use apt-get * Upgarde ubuntu * Disable upgrading drivers * Add messages to test * Add comment
This commit is contained in:
parent
6367d3641f
commit
1b73ad5908
17
.github/actions/install-driver/action.yml
vendored
17
.github/actions/install-driver/action.yml
vendored
@ -4,19 +4,20 @@ description: Install drivers
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
# lavapipe in Ubuntu 20.04 SEGVs. We can fix that with this PPA.
|
||||
# On Ubuntu 22.04 (currently used) using the PPA introduces SEGVs.
|
||||
#- name: Use oibaf PPA for drivers
|
||||
# shell: bash
|
||||
# run: |
|
||||
# sudo apt-get update -y -qq
|
||||
# sudo add-apt-repository ppa:oibaf/graphics-drivers -y
|
||||
- name: Install Mesa Dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update -y -qq
|
||||
|
||||
# Get latest drivers. The lavapipe in Ubuntu 20.04 SEGVs.
|
||||
sudo add-apt-repository ppa:oibaf/graphics-drivers -y
|
||||
|
||||
sudo apt install -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
||||
run: sudo apt-get install -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
||||
- name: Install wgpu-info
|
||||
shell: bash
|
||||
# Rev is for 0.14.1: https://github.com/gfx-rs/wgpu/tree/v0.14.1
|
||||
run: cargo install --debug --git "https://github.com/gfx-rs/wgpu" --rev 77b9a99cf4c7ca2b6d46124f9e48e510c04b605d wgpu-info
|
||||
run: cargo install --force --debug --git "https://github.com/gfx-rs/wgpu" --rev 77b9a99cf4c7ca2b6d46124f9e48e510c04b605d wgpu-info
|
||||
- name: wgpu-info
|
||||
shell: bash
|
||||
run: wgpu-info
|
||||
|
||||
4
.github/workflows/build-deploy-docs.yml
vendored
4
.github/workflows/build-deploy-docs.yml
vendored
@ -11,7 +11,7 @@ on:
|
||||
jobs:
|
||||
build-docs:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup
|
||||
@ -44,7 +44,7 @@ jobs:
|
||||
needs: build-docs
|
||||
if: inputs.deploy
|
||||
name: Deploy
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Download api-docs
|
||||
|
||||
2
.github/workflows/demo-linux.yml
vendored
2
.github/workflows/demo-linux.yml
vendored
@ -6,7 +6,7 @@ on:
|
||||
jobs:
|
||||
demo-linux:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup
|
||||
|
||||
2
.github/workflows/library-android.yml
vendored
2
.github/workflows/library-android.yml
vendored
@ -6,7 +6,7 @@ on:
|
||||
jobs:
|
||||
library-android:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup
|
||||
|
||||
4
.github/workflows/library-web.yml
vendored
4
.github/workflows/library-web.yml
vendored
@ -24,7 +24,7 @@ on:
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup
|
||||
@ -64,7 +64,7 @@ jobs:
|
||||
needs: [build]
|
||||
if: inputs.deploy
|
||||
name: Deploy
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/download-artifact@v3
|
||||
|
||||
2
.github/workflows/run-benchmarks.yml
vendored
2
.github/workflows/run-benchmarks.yml
vendored
@ -6,7 +6,7 @@ on:
|
||||
jobs:
|
||||
run-benchmarks:
|
||||
name: Benchmark
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup
|
||||
|
||||
2
.github/workflows/run-checks.yml
vendored
2
.github/workflows/run-checks.yml
vendored
@ -6,7 +6,7 @@ on:
|
||||
jobs:
|
||||
run-checks:
|
||||
name: Check
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup
|
||||
|
||||
2
.github/workflows/run-tests.yml
vendored
2
.github/workflows/run-tests.yml
vendored
@ -6,7 +6,7 @@ on:
|
||||
jobs:
|
||||
run-tests:
|
||||
name: Test
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup
|
||||
|
||||
@ -453,7 +453,7 @@ mod tests {
|
||||
let instance = wgpu::Instance::new(backends);
|
||||
let adapter = wgpu::util::initialize_adapter_from_env_or_default(&instance, backends, None)
|
||||
.await
|
||||
.unwrap();
|
||||
.expect("Unable to initialize adapter");
|
||||
|
||||
let (device, queue) = adapter
|
||||
.request_device(
|
||||
@ -466,7 +466,7 @@ mod tests {
|
||||
)
|
||||
.await
|
||||
.ok()
|
||||
.unwrap();
|
||||
.expect("Unable to request device");
|
||||
|
||||
let render_state = RenderState::new(Surface::from_image(
|
||||
&device,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user