Files
LACT/.github/workflows/rust.yml
Ilya Zlobintsev 0625b55748 test: add tests for retrieving data from various debug snapshots (#429)
* test: add tests for retrieving data from various debug snapshots

* chore: add power profiles mode to snapshot, add rx 7700s test data

* fix: update rust workflow
2024-12-18 23:55:31 +02:00

35 lines
889 B
YAML

name: Rust
on:
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
build-test:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Update repos
run: sudo apt update
- name: Install dependencies
run: sudo apt install -y libgtk-4-dev pkg-config libvulkan-dev libdrm-dev blueprint-compiler
- name: Build
run: cargo build
- name: Run tests
run: cargo test --verbose --no-default-features -p lact
check-format:
runs-on: ubuntu-24.04
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
steps:
- uses: actions/checkout@v2
- name: install rustfmt
run: rustup component add rustfmt
- name: Check formatting
run: cargo fmt -- --check