Skip to content

Commit 38f9005

Browse files
committed
Move to github action as travis is dead
1 parent afbf9d4 commit 38f9005

File tree

2 files changed

+48
-36
lines changed

2 files changed

+48
-36
lines changed

.github/workflows/rust.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
include:
19+
- qt: '5.6.2'
20+
rust: stable
21+
- qt: '5.15.2'
22+
rust: stable
23+
- qt: '5.9.2'
24+
rust: beta
25+
- qt: '5.12.2'
26+
rust: nightly
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: actions-rs/toolchain@v1
31+
with:
32+
profile: minimal
33+
toolchain: ${{ matrix.rust }}
34+
override: true
35+
components: rustfmt, clippy
36+
- name: Cache Qt
37+
id: cache-qt
38+
uses: actions/cache@v1
39+
with:
40+
path: ../Qt
41+
key: QtCache-${{ runner.os }}-${{ matrix.qt }}
42+
- name: Install Qt
43+
uses: jurplel/install-qt-action@v2
44+
with:
45+
version: ${{ matrix.qt }}
46+
cached: ${{ steps.cache-qt.outputs.cache-hit }}
47+
- name: Run tests
48+
run: cargo test --all-features

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)