|
1 |
| -name: Check MSRV |
2 |
| - |
3 |
| -on: |
4 |
| - push: |
5 |
| - branches: |
6 |
| - - v1 |
7 |
| - - v2 |
8 |
| - paths: |
9 |
| - - ".github/workflows/msrv-check.yml" |
10 |
| - - "plugins/*/src/**" |
11 |
| - - "**/Cargo.toml" |
12 |
| - - "**/Cargo.lock" |
13 |
| - pull_request: |
14 |
| - branches: |
15 |
| - - v1 |
16 |
| - - v2 |
17 |
| - paths: |
18 |
| - - ".github/workflows/msrv-check.yml" |
19 |
| - - "plugins/*/src/**" |
20 |
| - - "**/Cargo.toml" |
21 |
| - - "**/Cargo.lock" |
22 |
| - |
23 |
| -concurrency: |
24 |
| - group: ${{ github.workflow }}-${{ github.ref }} |
25 |
| - cancel-in-progress: true |
26 |
| - |
27 |
| -jobs: |
28 |
| - msrv: |
29 |
| - runs-on: ubuntu-latest |
30 |
| - strategy: |
31 |
| - fail-fast: false |
32 |
| - |
33 |
| - steps: |
34 |
| - - uses: actions/checkout@v3 |
35 |
| - |
36 |
| - - name: install webkit2gtk and libudev for [authenticator] |
37 |
| - run: | |
38 |
| - sudo apt-get update |
39 |
| - sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libudev-dev |
40 |
| -
|
41 |
| - - uses: dtolnay/rust-toolchain@1.64.0 |
42 |
| - |
43 |
| - - uses: Swatinem/rust-cache@v2 |
44 |
| - |
45 |
| - - name: build |
46 |
| - run: cargo build --workspace --exclude 'tauri-plugin-sql' --all-targets --all-features |
47 |
| - |
48 |
| - - uses: dtolnay/rust-toolchain@1.65.0 |
49 |
| - |
50 |
| - - name: build sql:sqlite |
51 |
| - run: cargo build --package 'tauri-plugin-sql' --all-targets --features sqlite |
52 |
| - |
53 |
| - - name: build sql:mysql |
54 |
| - run: cargo build --package 'tauri-plugin-sql' --all-targets --features mysql |
55 |
| - |
56 |
| - - name: build sql:postgres |
57 |
| - run: cargo build --package 'tauri-plugin-sql' --all-targets --features postgres |
| 1 | +name: Check MSRV |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - v1 |
| 7 | + - v2 |
| 8 | + paths: |
| 9 | + - ".github/workflows/msrv-check.yml" |
| 10 | + - "plugins/*/src/**" |
| 11 | + - "**/Cargo.toml" |
| 12 | + - "**/Cargo.lock" |
| 13 | + pull_request: |
| 14 | + branches: |
| 15 | + - v1 |
| 16 | + - v2 |
| 17 | + paths: |
| 18 | + - ".github/workflows/msrv-check.yml" |
| 19 | + - "plugins/*/src/**" |
| 20 | + - "**/Cargo.toml" |
| 21 | + - "**/Cargo.lock" |
| 22 | + |
| 23 | +concurrency: |
| 24 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 25 | + cancel-in-progress: true |
| 26 | + |
| 27 | +jobs: |
| 28 | + msrv: |
| 29 | + runs-on: ubuntu-latest |
| 30 | + strategy: |
| 31 | + fail-fast: false |
| 32 | + |
| 33 | + steps: |
| 34 | + - uses: actions/checkout@v3 |
| 35 | + |
| 36 | + - name: install webkit2gtk and libudev for [authenticator] |
| 37 | + run: | |
| 38 | + sudo apt-get update |
| 39 | + sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libudev-dev |
| 40 | +
|
| 41 | + - uses: dtolnay/rust-toolchain@1.67.0 |
| 42 | + |
| 43 | + - uses: Swatinem/rust-cache@v2 |
| 44 | + |
| 45 | + - name: build |
| 46 | + run: cargo build --workspace --exclude 'tauri-plugin-sql' --all-targets --all-features |
| 47 | + |
| 48 | + - uses: dtolnay/rust-toolchain@1.80.1 |
| 49 | + |
| 50 | + - name: build sql:sqlite |
| 51 | + run: cargo build --package 'tauri-plugin-sql' --all-targets --features sqlite |
| 52 | + |
| 53 | + - name: build sql:mysql |
| 54 | + run: cargo build --package 'tauri-plugin-sql' --all-targets --features mysql |
| 55 | + |
| 56 | + - name: build sql:postgres |
| 57 | + run: cargo build --package 'tauri-plugin-sql' --all-targets --features postgres |
0 commit comments