Browse Source

Use two separate jobs in one GHA workflow instead of 2 separate workflows

T. Meissner 6 months ago
parent
commit
eacf18cc49
3 changed files with 11 additions and 17 deletions
  1. 0
    13
      .github/workflows/formal.yml
  2. 10
    2
      .github/workflows/test.yml
  3. 1
    2
      README.md

+ 0
- 13
.github/workflows/formal.yml View File

@@ -1,13 +0,0 @@
1
-name: 'formal'
2
-
3
-on: [ push, pull_request ]
4
-
5
-jobs:
6
-
7
-  docker:
8
-    runs-on: ubuntu-latest
9
-    steps:
10
-    - uses: actions/checkout@v1
11
-      with:
12
-        submodules: recursive
13
-    - run: docker run --rm -tv $(pwd):/src -w /src/formal -e BUILD_NAME=ACCEPTANCE ghdl/synth:formal make all

+ 10
- 2
.github/workflows/test.yml View File

@@ -1,13 +1,21 @@
1
-name: 'test'
1
+name: 'tests'
2 2
 
3 3
 on: [ push, pull_request ]
4 4
 
5 5
 jobs:
6 6
 
7
-  docker:
7
+  test:
8 8
     runs-on: ubuntu-latest
9 9
     steps:
10 10
     - uses: actions/checkout@v1
11 11
       with:
12 12
         submodules: recursive
13 13
     - run: docker run --rm -tv $(pwd):/src -w /src/test -e BUILD_NAME=ACCEPTANCE ghdl/vunit:llvm make all
14
+
15
+  formal:
16
+    runs-on: ubuntu-latest
17
+    steps:
18
+    - uses: actions/checkout@v1
19
+      with:
20
+        submodules: recursive
21
+    - run: docker run --rm -tv $(pwd):/src -w /src/formal -e BUILD_NAME=ACCEPTANCE ghdl/synth:formal make all

+ 1
- 2
README.md View File

@@ -1,5 +1,4 @@
1
-[![test](https://github.com/tmeissner/libvhdl/workflows/test/badge.svg?branch=master)](https://github.com/tmeissner/libvhdl/actions?query=workflow%3Atest)
2
-[![formal](https://github.com/tmeissner/libvhdl/workflows/formal/badge.svg?branch=master)](https://github.com/tmeissner/libvhdl/actions?query=workflow%3Aformal)
1
+[![tests](https://github.com/tmeissner/libvhdl/workflows/tests/badge.svg?branch=master)](https://github.com/tmeissner/libvhdl/actions?query=workflow%3Atests)
3 2
 
4 3
 The original repository is now located on my own git-server at [https://git.goodcleanfun.de/tmeissner/libvhdl](https://git.goodcleanfun.de/tmeissner/libvhdl)
5 4
 It is mirrored to github with every push, so both should be in sync.