File tree Expand file tree Collapse file tree 2 files changed +7
-17
lines changed
Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 3434 run : powershell -NoProfile -ExecutionPolicy Unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/metacall/install/master/install.ps1')))"
3535
3636 - name : Install Rust
37- uses : actions-rs/toolchain@v1
38- with :
39- toolchain : stable
40- override : true
37+ uses : dtolnay/rust-toolchain@stable
4138
4239 - name : Build
4340 run : cargo build
Original file line number Diff line number Diff line change 3232
3333 steps :
3434 - name : Checkout repository
35- uses : actions/checkout@v2
35+ uses : actions/checkout@v4
3636 with :
3737 fetch-depth : 0
3838
@@ -52,22 +52,15 @@ jobs:
5252 echo "version: $version"
5353 echo "artifact: $name"
5454 - name : Install Rust
55- uses : actions-rs/ toolchain@v1
55+ uses : dtolnay/rust- toolchain@stable
5656 with :
57- toolchain : stable
58- profile : minimal
59- override : true
60- target : ${{ matrix.target }}
57+ targets : ${{ matrix.target }}
6158
6259 - name : Setup cache
63- uses : Swatinem/rust-cache@v1
60+ uses : Swatinem/rust-cache@v2
6461
6562 - name : Build binary
66- uses : actions-rs/cargo@v1
67- with :
68- command : build
69- args : --release --locked --target=${{ matrix.target }} --color=always --verbose
70- use-cross : ${{ runner.os == 'Linux' }}
63+ run : cargo build --release --locked --target=${{ matrix.target }} --color=always --verbose
7164
7265 - name : Package (*nix)
7366 run : >
7972 > 'metassr-${{ steps.get_version.outputs.value }}-${{ matrix.target }}.tar.gz'
8073
8174 - name : Upload artifact
82- uses : actions/upload-artifact@v2
75+ uses : actions/upload-artifact@v4
8376 with :
8477 name : ${{ matrix.target }}
8578 path : |
You can’t perform that action at this time.
0 commit comments