@@ -2,11 +2,13 @@ name: CI
2
2
3
3
on :
4
4
schedule :
5
- - cron : ' 0 0 * * 6'
5
+ - cron : " 0 0 * * 6"
6
6
push :
7
7
branches :
8
- - ' * '
8
+ - " * "
9
9
pull_request :
10
+ branches :
11
+ - " master"
10
12
11
13
jobs :
12
14
rustfmt :
@@ -22,15 +24,15 @@ jobs:
22
24
23
25
steps :
24
26
- name : Checkout
25
- uses : actions/checkout@v3
27
+ uses : actions/checkout@v4
26
28
27
- - name : ' Setup `${{ matrix.toolchain }}`'
29
+ - name : " Setup `${{ matrix.toolchain }}`"
28
30
uses : dtolnay/rust-toolchain@master
29
31
with :
30
32
toolchain : ${{ matrix.toolchain }}
31
33
components : rustfmt
32
34
33
- - name : ' Override `${{ matrix.toolchain }}'
35
+ - name : " Override `${{ matrix.toolchain }}"
34
36
run : |
35
37
rustup override set ${{ matrix.toolchain }}
36
38
@@ -50,11 +52,11 @@ jobs:
50
52
- stable-x86_64-apple-darwin
51
53
- stable-x86_64-unknown-linux-gnu
52
54
include :
53
- - { toolchain: 1.70.0-x86_64-pc-windows-msvc , os: windows-2019 }
54
- - { toolchain: 1.70.0-x86_64-apple-darwin , os: macos-11 }
55
+ - { toolchain: 1.70.0-x86_64-pc-windows-msvc, os: windows-2019 }
56
+ - { toolchain: 1.70.0-x86_64-apple-darwin, os: macos-11 }
55
57
- { toolchain: 1.70.0-x86_64-unknown-linux-gnu, os: ubuntu-20.04 }
56
- - { toolchain: stable-x86_64-pc-windows-msvc , os: windows-2019 }
57
- - { toolchain: stable-x86_64-apple-darwin , os: macos-11 }
58
+ - { toolchain: stable-x86_64-pc-windows-msvc, os: windows-2019 }
59
+ - { toolchain: stable-x86_64-apple-darwin, os: macos-11 }
58
60
- { toolchain: stable-x86_64-unknown-linux-gnu, os: ubuntu-20.04 }
59
61
60
62
name : Build (${{ matrix.toolchain }})
@@ -66,15 +68,15 @@ jobs:
66
68
if : matrix.os == 'windows-2019'
67
69
68
70
- name : Checkout
69
- uses : actions/checkout@v3
71
+ uses : actions/checkout@v4
70
72
71
- - name : ' Setup `${{ matrix.toolchain }}`'
73
+ - name : " Setup `${{ matrix.toolchain }}`"
72
74
uses : dtolnay/rust-toolchain@master
73
75
with :
74
76
toolchain : ${{ matrix.toolchain }}
75
77
components : clippy
76
78
77
- - name : ' Override `${{ matrix.toolchain }}`'
79
+ - name : " Override `${{ matrix.toolchain }}`"
78
80
run : |
79
81
rustup override set ${{ matrix.toolchain }}
80
82
@@ -100,23 +102,23 @@ jobs:
100
102
- 1.70.0-x86_64-unknown-linux-gnu
101
103
- stable-x86_64-unknown-linux-gnu
102
104
python-version :
103
- - ' 3.6' # https://packages.ubuntu.com/bionic/python3
104
- - ' 3.8' # https://packages.ubuntu.com/focal/python3
105
+ - " 3.6" # https://packages.ubuntu.com/bionic/python3
106
+ - " 3.8" # https://packages.ubuntu.com/focal/python3
105
107
106
108
name : Expand_test (${{ matrix.toolchain }}, ${{ matrix.python-version }})
107
109
runs-on : ubuntu-20.04
108
110
109
111
steps :
110
112
- name : Checkout
111
- uses : actions/checkout@v3
113
+ uses : actions/checkout@v4
112
114
113
- - name : ' Setup `${{ matrix.toolchain }}`'
115
+ - name : " Setup `${{ matrix.toolchain }}`"
114
116
uses : dtolnay/rust-toolchain@master
115
117
with :
116
118
toolchain : ${{ matrix.toolchain }}
117
119
components : rustfmt
118
120
119
- - name : ' Override `${{ matrix.toolchain }}`'
121
+ - name : " Override `${{ matrix.toolchain }}`"
120
122
run : |
121
123
rustup override set ${{ matrix.toolchain }}
122
124
@@ -134,21 +136,21 @@ jobs:
134
136
135
137
steps :
136
138
- name : Checkout
137
- uses : actions/checkout@v3
139
+ uses : actions/checkout@v4
138
140
139
141
- name : Setup `1.70.0-x86_64-unknown-linux-gnu`
140
142
uses : dtolnay/rust-toolchain@master
141
143
with :
142
144
toolchain : 1.70.0-x86_64-unknown-linux-gnu
143
145
144
- - name : ' Override `1.70.0-x86_64-unknown-linux-gnu'
146
+ - name : " Override `1.70.0-x86_64-unknown-linux-gnu"
145
147
run : |
146
148
rustup override set 1.70.0-x86_64-unknown-linux-gnu
147
149
148
150
- name : Setup Python 3.9
149
151
uses : actions/setup-python@v4
150
152
with :
151
- python-version : ' 3.9'
153
+ python-version : " 3.9"
152
154
153
155
- name : Install `oj`
154
156
run : pip install online-judge-tools
0 commit comments