Skip to content

Commit 55ed504

Browse files
committed
Split release workflow
1 parent a9c1d80 commit 55ed504

File tree

2 files changed

+23
-15
lines changed

2 files changed

+23
-15
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Build
18+
run: cargo build --verbose
19+
- name: Run tests
20+
run: cargo test --verbose
Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,13 @@
1-
name: CI/CD
1+
name: Release
22

33
on:
4-
push:
5-
branches: [ "master" ]
6-
pull_request:
7-
branches: [ "master" ]
4+
release:
5+
types: [created]
86

97
env:
108
CARGO_TERM_COLOR: always
119

1210
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
- name: Build
18-
run: cargo build --verbose
19-
- name: Run tests
20-
run: cargo test --verbose
21-
2211
attach_binaries:
2312
strategy:
2413
matrix:
@@ -43,7 +32,6 @@ jobs:
4332
os: ubuntu-latest
4433
suffix: linux-arm64
4534
ext: ""
46-
needs: [build]
4735
runs-on: ${{ matrix.os }}
4836
if: startsWith(github.ref, 'refs/tags/')
4937
steps:

0 commit comments

Comments
 (0)