11name : CI
22
33on :
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]
610
711permissions : { contents: read }
812
@@ -18,10 +22,10 @@ jobs:
1822 target :
1923 - { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
2024 version :
21- - ' 1.60 ' # MSRV
22- - stable
25+ - { name: msrv, version: 1.68.0 }
26+ - { name: stable, version: stable }
2327
24- name : ${{ matrix.target.name }} / ${{ matrix.version }}
28+ name : ${{ matrix.target.name }} / ${{ matrix.version.name }}
2529 runs-on : ${{ matrix.target.os }}
2630
2731 services :
@@ -37,21 +41,22 @@ jobs:
3741 --entrypoint redis-server
3842
3943 steps :
40- - uses : actions/checkout@v3
44+ - uses : actions/checkout@v4
4145
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
4448 with :
45- toolchain : ${{ matrix.version }}
49+ toolchain : ${{ matrix.version.version }}
4650
4751 - 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
5055
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
5560
5661 - name : check minimal
5762 run : cargo ci-min
@@ -75,36 +80,34 @@ jobs:
7580 strategy :
7681 fail-fast : false
7782 matrix :
83+ # prettier-ignore
7884 target :
7985 - { 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 }
8587 version :
86- - ' 1.60 ' # MSRV
87- - stable
88+ - { name: msrv, version: 1.68.0 }
89+ - { name: stable, version: stable }
8890
89- name : ${{ matrix.target.name }} / ${{ matrix.version }}
91+ name : ${{ matrix.target.name }} / ${{ matrix.version.name }}
9092 runs-on : ${{ matrix.target.os }}
9193
9294 steps :
93- - uses : actions/checkout@v3
95+ - uses : actions/checkout@v4
9496
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
9799 with :
98- toolchain : ${{ matrix.version }}
100+ toolchain : ${{ matrix.version.version }}
99101
100102 - 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
103106
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
108111
109112 - name : check minimal
110113 run : cargo ci-min
@@ -128,11 +131,12 @@ jobs:
128131 name : doc tests
129132 runs-on : ubuntu-latest
130133 steps :
131- - uses : actions/checkout@v3
134+ - uses : actions/checkout@v4
132135
133136 - 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
136140
137141 - name : doc tests
138142 timeout-minutes : 40
0 commit comments