mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
* 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
35 lines
889 B
YAML
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
|