ki18n-rs/.github/workflows/rust.yml
Ayush Singh b237f0e4ff Removing KCountry for now.
Cannot find the package providing KCountry.h in Ubuntu. It is present
with the normal KI18n in Arch Linux so no idea what to do.
2021-12-23 15:14:45 +05:30

52 lines
1.1 KiB
YAML

name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
env:
QT_QPA_PLATFORM: offscreen
strategy:
matrix:
os: [ubuntu-latest]
qt: [5.15.2]
rust: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
with:
key: rust_cache
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: QtCache-${{ runner.os }}-${{ matrix.qt }}
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: ${{ matrix.qt }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Install KF5i18n
run: sudo apt install libkf5i18n-dev
- name: Build
run: cargo build --verbose --all-features
- name: Run tests
run: cargo test --verbose --all-features