1
1
name : CI
2
2
3
3
on :
4
- pull_request : {}
5
- push : { branches: [master] }
4
+ pull_request :
5
+ types : [opened, synchronize, reopened]
6
+ merge_group :
7
+ types : [checks_requested]
8
+ push :
9
+ branches : [master]
6
10
7
11
permissions : { contents: read }
8
12
@@ -18,10 +22,10 @@ jobs:
18
22
target :
19
23
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
20
24
version :
21
- - ' 1.60 ' # MSRV
22
- - stable
25
+ - { name: msrv, version: 1.68.0 }
26
+ - { name: stable, version: stable }
23
27
24
- name : ${{ matrix.target.name }} / ${{ matrix.version }}
28
+ name : ${{ matrix.target.name }} / ${{ matrix.version.name }}
25
29
runs-on : ${{ matrix.target.os }}
26
30
27
31
services :
@@ -37,21 +41,22 @@ jobs:
37
41
--entrypoint redis-server
38
42
39
43
steps :
40
- - uses : actions/checkout@v3
44
+ - uses : actions/checkout@v4
41
45
42
- - name : Install Rust (${{ matrix.version }})
43
- uses : actions-rust-lang/setup-rust-toolchain@v1
46
+ - name : Install Rust (${{ matrix.version.name }})
47
+ uses : actions-rust-lang/setup-rust-toolchain@v1.5.0
44
48
with :
45
- toolchain : ${{ matrix.version }}
49
+ toolchain : ${{ matrix.version.version }}
46
50
47
51
- name : Install cargo-hack
48
- uses : taiki-e/cache-cargo-install-action@v1
49
- with : { tool: cargo-hack }
52
+
53
+ with :
54
+ tool : cargo-hack
50
55
51
- - name : workaround MSRV issues
52
- if : matrix.version != 'stable '
53
- run : |
54
- cargo update -p=time:0.3.20 --precise=0.3.16
56
+ # - name: workaround MSRV issues
57
+ # if: matrix.version.name == 'msrv '
58
+ # run: |
59
+ # cargo update -p=time:0.3.20 --precise=0.3.16
55
60
56
61
- name : check minimal
57
62
run : cargo ci-min
@@ -75,36 +80,34 @@ jobs:
75
80
strategy :
76
81
fail-fast : false
77
82
matrix :
83
+ # prettier-ignore
78
84
target :
79
85
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin }
80
- - {
81
- name : Windows,
82
- os : windows-latest,
83
- triple : x86_64-pc-windows-msvc,
84
- }
86
+ - { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
85
87
version :
86
- - ' 1.60 ' # MSRV
87
- - stable
88
+ - { name: msrv, version: 1.68.0 }
89
+ - { name: stable, version: stable }
88
90
89
- name : ${{ matrix.target.name }} / ${{ matrix.version }}
91
+ name : ${{ matrix.target.name }} / ${{ matrix.version.name }}
90
92
runs-on : ${{ matrix.target.os }}
91
93
92
94
steps :
93
- - uses : actions/checkout@v3
95
+ - uses : actions/checkout@v4
94
96
95
- - name : Install Rust (${{ matrix.version }})
96
- uses : actions-rust-lang/setup-rust-toolchain@v1
97
+ - name : Install Rust (${{ matrix.version.name }})
98
+ uses : actions-rust-lang/setup-rust-toolchain@v1.5.0
97
99
with :
98
- toolchain : ${{ matrix.version }}
100
+ toolchain : ${{ matrix.version.version }}
99
101
100
102
- name : Install cargo-hack
101
- uses : taiki-e/cache-cargo-install-action@v1
102
- with : { tool: cargo-hack }
103
+
104
+ with :
105
+ tool : cargo-hack
103
106
104
- - name : workaround MSRV issues
105
- if : matrix.version != 'stable '
106
- run : |
107
- cargo update -p=time:0.3.20 --precise=0.3.16
107
+ # - name: workaround MSRV issues
108
+ # if: matrix.version.name == 'msrv '
109
+ # run: |
110
+ # cargo update -p=time:0.3.20 --precise=0.3.16
108
111
109
112
- name : check minimal
110
113
run : cargo ci-min
@@ -128,11 +131,12 @@ jobs:
128
131
name : doc tests
129
132
runs-on : ubuntu-latest
130
133
steps :
131
- - uses : actions/checkout@v3
134
+ - uses : actions/checkout@v4
132
135
133
136
- name : Install Rust (nightly)
134
- uses : actions-rust-lang/setup-rust-toolchain@v1
135
- with : { toolchain: nightly }
137
+ uses :
actions-rust-lang/[email protected]
138
+ with :
139
+ toolchain : nightly
136
140
137
141
- name : doc tests
138
142
timeout-minutes : 40
0 commit comments