Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit b1e30f6

Browse files
committed
chore(ci): update checkout
1 parent 1eeb386 commit b1e30f6

File tree

3 files changed

+45
-41
lines changed

3 files changed

+45
-41
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ on:
1313

1414
jobs:
1515
build_and_release:
16-
name: Build and Release
17-
runs-on: [ubuntu-latest, macos-latest, windows-latest]
16+
name: Build and Release on ${{ matrix.os }}
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
matrix:
20+
os: [ubuntu-latest, macos-latest, windows-latest]
21+
1822

1923
steps:
2024
- name: Checkout code
21-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2226

2327
- name: Set up Rust
2428
uses: actions-rs/toolchain@v1
@@ -35,7 +39,7 @@ jobs:
3539

3640
- name: Rename binary
3741
run: |
38-
mv target/release/myapp target/release/myapp-${{ steps.vars.outputs.version }}
42+
mv target/release/zvms_backend target/release/zvms_backend-${{ matrix.os }}-${{ steps.vars.outputs.version }}
3943
4044
- name: Create release
4145
id: create_release
@@ -54,6 +58,6 @@ jobs:
5458
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5559
with:
5660
upload_url: ${{ steps.create_release.outputs.upload_url }}
57-
asset_path: ./target/release/myapp-${{ steps.vars.outputs.version }}
58-
asset_name: myapp-${{ steps.vars.outputs.version }}
61+
asset_path: ./target/release/zvms_backend-${{ matrix.os }}-${{ steps.vars.outputs.version }}
62+
asset_name: zvms_backend-${{ steps.vars.outputs.version }}
5963
asset_content_type: application/octet-stream

Cargo.lock

Lines changed: 34 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "backend_rust"
2+
name = "zvms_backend"
33
version = "0.1.0"
44
edition = "2021"
55

0 commit comments

Comments
 (0)