Skip to content

Commit 5d8943a

Browse files
committed
Remove deprecated github actions and optimize build step
1 parent 4b131fa commit 5d8943a

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: CI pipeline
22

3-
# [TODO]: This workflow is using a deprecated GH action (actions-rs/toolchain@v1). Need replacement.
4-
53
on:
64
push:
75
branches:
@@ -19,9 +17,8 @@ jobs:
1917
uses: actions/checkout@v4
2018

2119
- name: Install Rust
22-
uses: actions-rs/toolchain@v1
20+
uses: dtolnay/rust-toolchain@stable
2321
with:
24-
toolchain: stable
2522
components: rustfmt, clippy
2623

2724
- name: Run formatter
@@ -37,9 +34,7 @@ jobs:
3734
uses: actions/checkout@v4
3835

3936
- name: Install Rust
40-
uses: actions-rs/toolchain@v1
41-
with:
42-
toolchain: stable
37+
uses: dtolnay/rust-toolchain@stable
4338

4439
- name: Run tests
4540
run: cargo test --workspace --all-targets
@@ -52,15 +47,14 @@ jobs:
5247
uses: actions/checkout@v4
5348

5449
- name: Install Rust
55-
uses: actions-rs/toolchain@v1
56-
with:
57-
toolchain: stable
50+
uses: dtolnay/rust-toolchain@stable
5851

5952
- name: Build
60-
run: cargo build --workspace --all-targets --release
61-
62-
- name: Upload artifacts
63-
uses: actions/upload-artifact@v4
64-
with:
65-
name: encryptify-artifacts
66-
path: target/release
53+
run: cargo build --workspace --all-targets
54+
# run: cargo build --workspace --all-targets --release
55+
56+
# - name: Upload artifacts
57+
# uses: actions/upload-artifact@v4
58+
# with:
59+
# name: encryptify-artifacts
60+
# path: target/release

0 commit comments

Comments
 (0)