-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.26 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_INCREMENTAL: false
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: full
MSRV: 1.80
RUSTDOCFLAGS: -Dwarnings
CACHE_SUFFIX: c
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --all-features --profile ci --verbose
- name: Clippy
run: cargo clippy --all-features --profile ci
- name: Install vulkan
run: |
set -e
sudo apt-get update -y -qq
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt-get update
sudo apt install -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev vulkan-sdk mesa-vulkan-drivers
- name: Dunge tests
run: cargo test --profile ci --verbose --package dunge
- name: All tests
run: cargo test --profile ci --verbose