Skip to content

Commit e7db9c2

Browse files
committed
fix(GitHub): Separate Workflows
1 parent 3378032 commit e7db9c2

File tree

2 files changed

+30
-22
lines changed

2 files changed

+30
-22
lines changed

.github/workflows/build.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: build
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: build
20+
run: |
21+
mkdir build
22+
cd build
23+
cmake ..
24+
make

.github/workflows/test.yml

+6-22
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,18 @@
1-
name: LZW
1+
name: run-tests
22

33
on:
4-
push:
4+
workflow_run:
5+
workflows: ['build']
56
branches:
6-
- 'master'
7-
pull_request:
8-
workflow_dispatch:
7+
- master
8+
types:
9+
- completed
910

1011
jobs:
11-
build:
12-
name: build
13-
runs-on: ubuntu-latest
14-
15-
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@v2
18-
19-
- name: build
20-
run: |
21-
mkdir build
22-
cd build
23-
cmake ..
24-
make
25-
2612
test:
2713
name: test
2814
runs-on: ubuntu-latest
2915

30-
needs: build
31-
3216
steps:
3317
- name: Checkout code
3418
uses: actions/checkout@v2

0 commit comments

Comments
 (0)