Improved Github Action
Removed dependencies that don't seem useful Also copied a lot of stuff from qmetaobject Github Action so that this action might be used for windows and macos testing.
This commit is contained in:
parent
e7d20f21ad
commit
5cf6a34302
39
.github/workflows/rust.yml
vendored
39
.github/workflows/rust.yml
vendored
|
@ -13,14 +13,39 @@ jobs:
|
||||||
build:
|
build:
|
||||||
env:
|
env:
|
||||||
QT_QPA_PLATFORM: offscreen
|
QT_QPA_PLATFORM: offscreen
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
qt: [5.15.2]
|
||||||
|
rust: [stable, nightly]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install Dependencie
|
- uses: actions-rs/toolchain@v1
|
||||||
run: sudo apt install build-essential extra-cmake-modules cmake qtbase5-dev qtdeclarative5-dev libqt5svg5-dev qtquickcontrols2-5-dev qml-module-org-kde-kirigami2 kirigami2-dev libkf5i18n-dev gettext libkf5coreaddons-dev qml-module-qtquick-layouts
|
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
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose --all-features
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose --all-features
|
||||||
- name: Generate Docs
|
|
||||||
run: cargo doc --verbose
|
|
||||||
|
|
|
@ -45,5 +45,5 @@
|
||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
mod klocalizedcontext;
|
pub mod klocalizedcontext;
|
||||||
pub use klocalizedcontext::KLocalizedContext;
|
pub use klocalizedcontext::KLocalizedContext;
|
||||||
|
|
Loading…
Reference in a new issue