1
1
name : Build & test all configs
2
2
3
- on : [push, pull_request]
3
+ on : [ push, pull_request ]
4
4
5
5
jobs :
6
6
release-notice :
32
32
ext : " "
33
33
- target : x86_64-unknown-linux-musl
34
34
os : ubuntu-latest
35
- ext : " "
35
+ ext : " "
36
36
- target : x86_64-pc-windows-msvc
37
37
os : windows-latest
38
38
ext : .exe
@@ -43,14 +43,12 @@ jobs:
43
43
runs-on : ${{ matrix.os }}
44
44
45
45
steps :
46
- - uses : actions/checkout@v1
46
+ - uses : actions/checkout@v4
47
47
48
48
- name : Setup Rust toolchain
49
- uses : actions-rs/ toolchain@v1
49
+ uses : dtolnay/rust- toolchain@stable
50
50
with :
51
- profile : minimal
52
51
toolchain : ${{ matrix.rust }}
53
- override : true
54
52
target : x86_64-unknown-linux-musl
55
53
components : rustfmt, clippy
56
54
@@ -64,31 +62,19 @@ jobs:
64
62
version : 1.0
65
63
66
64
- name : Build
67
- uses : actions-rs/cargo@v1
68
- with :
69
- command : build
70
- args : --manifest-path ${{ matrix.crate }}/Cargo.toml --release --target ${{ matrix.target }}
65
+ run : cargo build --manifest-path ${{ matrix.crate }}/Cargo.toml --release --target ${{ matrix.target }}
71
66
72
67
- name : Test
73
- uses : actions-rs/cargo@v1
74
68
if : matrix.os != 'macos-latest' # There are no free runners for Apple Silicon available at the moment
75
- with :
76
- command : test
77
- args : --manifest-path ${{ matrix.crate }}/Cargo.toml --release --target ${{ matrix.target }}
69
+ run : cargo test --manifest-path ${{ matrix.crate }}/Cargo.toml --release --target ${{ matrix.target }}
78
70
79
71
- name : rustfmt
80
72
if : matrix.os == 'ubuntu-latest' && matrix.rust == 'stable'
81
- uses : actions-rs/cargo@v1
82
- with :
83
- command : fmt
84
- args : --package ${{ matrix.crate }} -- --check
73
+ run : cargo fmt --package ${{ matrix.crate }} -- --check
85
74
86
75
- name : clippy
87
76
if : matrix.os == 'ubuntu-latest'
88
- uses : actions-rs/cargo@v1
89
- with :
90
- command : clippy
91
- args : --package ${{ matrix.crate }} --all-targets --all-features -- -D warnings
77
+ run : cargo clippy --package ${{ matrix.crate }} --all-targets --all-features -- -D warnings
92
78
93
79
- name : Assemble
94
80
if : matrix.rust == 'stable'
100
86
101
87
- name : Upload
102
88
if : matrix.rust == 'stable'
103
- uses : actions/upload-artifact@v1
89
+ uses : actions/upload-artifact@v4
104
90
with :
105
91
name : ${{ matrix.crate }}-${{ matrix.target }}
106
92
path : ${{ matrix.crate }}-${{ matrix.target }}
@@ -117,9 +103,9 @@ jobs:
117
103
run : |
118
104
echo ::set-output name=v::${GITHUB_REF/refs\/tags\/v/}
119
105
echo "Version is v${GITHUB_REF/refs\/tags\/v/}"
120
- - uses : actions/checkout@v1
106
+ - uses : actions/checkout@v4
121
107
- name : Get vhdl_lang linux-musl
122
- uses : actions/download-artifact@v1
108
+ uses : actions/download-artifact@v4
123
109
with :
124
110
name : vhdl_lang-x86_64-unknown-linux-musl
125
111
- name : Check vhdl_lang version
@@ -134,7 +120,7 @@ jobs:
134
120
echo "Version string matched"
135
121
fi
136
122
- name : Get vhdl_ls linux-musl
137
- uses : actions/download-artifact@v1
123
+ uses : actions/download-artifact@v4
138
124
with :
139
125
name : vhdl_ls-x86_64-unknown-linux-musl
140
126
- name : Check vhdl_ls version
@@ -149,27 +135,27 @@ jobs:
149
135
echo "Version string matched"
150
136
fi
151
137
- name : Get vhdl_lang linux-gnu
152
- uses : actions/download-artifact@v1
138
+ uses : actions/download-artifact@v4
153
139
with :
154
- name : vhdl_lang-x86_64-unknown-linux-gnu
140
+ name : vhdl_lang-x86_64-unknown-linux-gnu
155
141
- name : Get vhdl_ls linux-gnu
156
- uses : actions/download-artifact@v1
142
+ uses : actions/download-artifact@v4
157
143
with :
158
- name : vhdl_ls-x86_64-unknown-linux-gnu
144
+ name : vhdl_ls-x86_64-unknown-linux-gnu
159
145
- name : Get vhdl_lang windows
160
- uses : actions/download-artifact@v1
146
+ uses : actions/download-artifact@v4
161
147
with :
162
148
name : vhdl_lang-x86_64-pc-windows-msvc
163
149
- name : Get vhdl_ls windows
164
- uses : actions/download-artifact@v1
150
+ uses : actions/download-artifact@v4
165
151
with :
166
152
name : vhdl_ls-x86_64-pc-windows-msvc
167
153
- name : Get vhdl_lang macos
168
- uses : actions/download-artifact@v1
154
+ uses : actions/download-artifact@v4
169
155
with :
170
156
name : vhdl_lang-aarch64-apple-darwin
171
157
- name : Get vhdl_ls macos
172
- uses : actions/download-artifact@v1
158
+ uses : actions/download-artifact@v4
173
159
with :
174
160
name : vhdl_ls-aarch64-apple-darwin
175
161
- name : Zip artifacts
0 commit comments