11name : Build & test all configs
22
3- on : [push, pull_request]
3+ on : [ push, pull_request ]
44
55jobs :
66 release-notice :
3232 ext : " "
3333 - target : x86_64-unknown-linux-musl
3434 os : ubuntu-latest
35- ext : " "
35+ ext : " "
3636 - target : x86_64-pc-windows-msvc
3737 os : windows-latest
3838 ext : .exe
@@ -43,14 +43,12 @@ jobs:
4343 runs-on : ${{ matrix.os }}
4444
4545 steps :
46- - uses : actions/checkout@v1
46+ - uses : actions/checkout@v4
4747
4848 - name : Setup Rust toolchain
49- uses : actions-rs/ toolchain@v1
49+ uses : dtolnay/rust- toolchain@stable
5050 with :
51- profile : minimal
5251 toolchain : ${{ matrix.rust }}
53- override : true
5452 target : x86_64-unknown-linux-musl
5553 components : rustfmt, clippy
5654
@@ -64,31 +62,19 @@ jobs:
6462 version : 1.0
6563
6664 - 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 }}
7166
7267 - name : Test
73- uses : actions-rs/cargo@v1
7468 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 }}
7870
7971 - name : rustfmt
8072 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
8574
8675 - name : clippy
8776 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
9278
9379 - name : Assemble
9480 if : matrix.rust == 'stable'
10086
10187 - name : Upload
10288 if : matrix.rust == 'stable'
103- uses : actions/upload-artifact@v1
89+ uses : actions/upload-artifact@v4
10490 with :
10591 name : ${{ matrix.crate }}-${{ matrix.target }}
10692 path : ${{ matrix.crate }}-${{ matrix.target }}
@@ -117,9 +103,9 @@ jobs:
117103 run : |
118104 echo ::set-output name=v::${GITHUB_REF/refs\/tags\/v/}
119105 echo "Version is v${GITHUB_REF/refs\/tags\/v/}"
120- - uses : actions/checkout@v1
106+ - uses : actions/checkout@v4
121107 - name : Get vhdl_lang linux-musl
122- uses : actions/download-artifact@v1
108+ uses : actions/download-artifact@v4
123109 with :
124110 name : vhdl_lang-x86_64-unknown-linux-musl
125111 - name : Check vhdl_lang version
@@ -134,7 +120,7 @@ jobs:
134120 echo "Version string matched"
135121 fi
136122 - name : Get vhdl_ls linux-musl
137- uses : actions/download-artifact@v1
123+ uses : actions/download-artifact@v4
138124 with :
139125 name : vhdl_ls-x86_64-unknown-linux-musl
140126 - name : Check vhdl_ls version
@@ -149,27 +135,27 @@ jobs:
149135 echo "Version string matched"
150136 fi
151137 - name : Get vhdl_lang linux-gnu
152- uses : actions/download-artifact@v1
138+ uses : actions/download-artifact@v4
153139 with :
154- name : vhdl_lang-x86_64-unknown-linux-gnu
140+ name : vhdl_lang-x86_64-unknown-linux-gnu
155141 - name : Get vhdl_ls linux-gnu
156- uses : actions/download-artifact@v1
142+ uses : actions/download-artifact@v4
157143 with :
158- name : vhdl_ls-x86_64-unknown-linux-gnu
144+ name : vhdl_ls-x86_64-unknown-linux-gnu
159145 - name : Get vhdl_lang windows
160- uses : actions/download-artifact@v1
146+ uses : actions/download-artifact@v4
161147 with :
162148 name : vhdl_lang-x86_64-pc-windows-msvc
163149 - name : Get vhdl_ls windows
164- uses : actions/download-artifact@v1
150+ uses : actions/download-artifact@v4
165151 with :
166152 name : vhdl_ls-x86_64-pc-windows-msvc
167153 - name : Get vhdl_lang macos
168- uses : actions/download-artifact@v1
154+ uses : actions/download-artifact@v4
169155 with :
170156 name : vhdl_lang-aarch64-apple-darwin
171157 - name : Get vhdl_ls macos
172- uses : actions/download-artifact@v1
158+ uses : actions/download-artifact@v4
173159 with :
174160 name : vhdl_ls-aarch64-apple-darwin
175161 - name : Zip artifacts
0 commit comments