-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (51 loc) · 1.22 KB
/
libstrophe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: libstrophe
on:
push:
branches:
- "*"
tags_ignore:
- "*"
pull_request:
branches:
- "*"
jobs:
ci:
strategy:
fail-fast: false
matrix:
libstrophe-version:
- 0.9.3
- 0.10.1
- 0.11.0
- 0.12.2
runs-on: ubuntu-20.04
env:
LIBSTROPHE_VERSION: ${{ matrix.libstrophe-version }}
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: ci/install.sh
shell: bash
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy,rustfmt
- name: Checks
run: ci/checks.sh
shell: bash
- name: Test
run: ci/script.sh
shell: bash
msrv:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Get MSRV package metadata
id: metadata
run: cargo metadata --no-deps --format-version 1 | jq -r '"msrv="+(.packages[]|select(.name=="libstrophe").rust_version)' >> $GITHUB_OUTPUT
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.metadata.outputs.msrv }}
components: clippy,rustfmt
- name: Checks
run: ci/checks.sh
shell: bash