Skip to content

Commit fce1a63

Browse files
update: github workflow
1 parent 41b5c7b commit fce1a63

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# .github/workflows/build.yml
2+
name: Build
3+
4+
on:
5+
push:
6+
branches: [master]
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Compile
15+
id: compile
16+
uses: rust-build/rust-build.action@v1.4.5
17+
with:
18+
RUSTTARGET: x86_64-unknown-linux-musl
19+
UPLOAD_MODE: none
20+
- name: Upload artifact
21+
uses: actions/upload-artifact@v3
22+
with:
23+
name: Binary
24+
path: |
25+
${{ steps.compile.outputs.BUILT_ARCHIVE }}
26+
${{ steps.compile.outputs.BUILT_CHECKSUM }}

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ name: Build and Release CLI
22

33
on:
44
push:
5-
tags:
6-
- 'v*' # 当推送带有 v* 前缀的 tag 时触发工作流
5+
branches: [master]
76

87
jobs:
98
release:

0 commit comments

Comments
 (0)