CONTENTIOUS: Run tests on linux through xvfb
This commit is contained in:
parent
d04208a9f6
commit
4ff946f8f0
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -42,11 +42,24 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- name: Install Linux dependencies
|
||||
uses: ./.github/actions/install-linux-deps
|
||||
# At some point this may be merged into `install-linux-deps`, but for now it is its own step.
|
||||
- name: Install additional Linux dependencies for Vulkan
|
||||
if: ${{ runner.os == 'linux' }}
|
||||
run: |
|
||||
sudo add-apt-repository ppa:kisak/turtle -y
|
||||
sudo apt-get install --no-install-recommends libxkbcommon-x11-0 xvfb libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
||||
- name: Build & run tests
|
||||
if: ${{ runner.os != 'linux' }}
|
||||
# See tools/ci/src/main.rs for the commands this runs
|
||||
run: cargo run -p ci -- test
|
||||
env:
|
||||
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
||||
- name: Build & run tests through xvfb
|
||||
if: ${{ runner.os == 'linux' }}
|
||||
# See tools/ci/src/main.rs for the commands this runs
|
||||
run: xvfb-run cargo run -p ci -- test
|
||||
env:
|
||||
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
||||
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
13
.github/workflows/weekly.yml
vendored
13
.github/workflows/weekly.yml
vendored
@ -43,11 +43,24 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@beta
|
||||
- name: Install Linux dependencies
|
||||
uses: ./.github/actions/install-linux-deps
|
||||
# At some point this may be merged into `install-linux-deps`, but for now it is its own step.
|
||||
- name: Install additional Linux dependencies for Vulkan
|
||||
if: ${{ runner.os == 'linux' }}
|
||||
run: |
|
||||
sudo add-apt-repository ppa:kisak/turtle -y
|
||||
sudo apt-get install --no-install-recommends libxkbcommon-x11-0 xvfb libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
||||
- name: Build & run tests
|
||||
if: ${{ runner.os != 'linux' }}
|
||||
# See tools/ci/src/main.rs for the commands this runs
|
||||
run: cargo run -p ci -- test
|
||||
env:
|
||||
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
||||
- name: Build & run tests through xvfb
|
||||
if: ${{ runner.os == 'linux' }}
|
||||
# See tools/ci/src/main.rs for the commands this runs
|
||||
run: xvfb-run cargo run -p ci -- test
|
||||
env:
|
||||
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Loading…
Reference in New Issue
Block a user