Skip to content

Commit f912291

Browse files
committed
ci: replace deprecated actions-rs actions with modern equivalents
Signed-off-by: Abhiswant Chaudhary <abhiswant0324@gmail.com>
1 parent b63484e commit f912291

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

.github/workflows/integration.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
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: >
@@ -79,7 +72,7 @@ jobs:
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: |

0 commit comments

Comments
 (0)