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:
Max Ammann 2022-11-13 11:30:59 +01:00 committed by GitHub
parent 6367d3641f
commit 1b73ad5908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 20 additions and 19 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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,