Files
LACT/.github/workflows/rust.yml
ilyazzz 0959667ca7 rust.yml update pci.ids on each run
For some unknown reason, ubuntu 20.04 is missing some entries from the PCI ID database that are present both in older and newer versions.
2021-01-21 15:49:47 +02:00

29 lines
568 B
YAML

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build_test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Update repos
run: sudo apt update
- name: Install dependencies
run: sudo apt install libgtk-3-dev libvulkan-dev
- name: Update pci.ids
run: sudo sh -c "curl https://pci-ids.ucw.cz/v2.2/pci.ids > /usr/share/misc/pci.ids"
- name: Build
run: cargo build
- name: Run tests
run: cargo test --verbose