ci: use job.container
authorumarcor <unai.martinezcorral@ehu.eus>
Mon, 30 Nov 2020 21:17:13 +0000 (22:17 +0100)
committerumarcor <unai.martinezcorral@ehu.eus>
Mon, 30 Nov 2020 22:35:27 +0000 (23:35 +0100)
Signed-off-by: umarcor <unai.martinezcorral@ehu.eus>
.github/workflows/test.yml

index 6baf1bf43d8677c836c40fc9c5f98b7d15c23db1..c40139cc2dd68593b6f42fc0d5b5a86d0fdac941 100644 (file)
@@ -10,17 +10,21 @@ jobs:
 
   build:
     runs-on: ubuntu-latest
+    container: ghdl/vunit:llvm
     steps:
     - uses: actions/checkout@v2
-    - run: docker pull ghdl/vunit:llvm
-    - run: docker run -t -v $PWD:/build -w /build ghdl/vunit:llvm bash -c "make GNATMAKE='gnatmake -j'$(nproc)"
+    - run: make GNATMAKE='gnatmake -j'$(nproc)
 
   py:
     needs: [build]
     runs-on: ubuntu-latest
+    container: ghdl/vunit:llvm
     steps:
     - uses: actions/checkout@v2
-    - run: docker run -t -v $PWD:/build -w /build ghdl/vunit:llvm bash -c "apt update && apt install -y python3-pexpect && make -j$(nproc) test_micropython test_micropython_long"
+    - run: |
+        apt update
+        apt install -y python3-pexpect
+        make -j$(nproc) test_micropython test_micropython_long
 
   test:
     needs: [build]
@@ -43,9 +47,10 @@ jobs:
           "{900..999}",
         ]
     runs-on: ubuntu-latest
+    container: ghdl/vunit:llvm
     steps:
     - uses: actions/checkout@v2
-    - run: docker run -t -v $PWD:/build -w /build ghdl/vunit:llvm bash -c "make -j$(nproc) ${{ matrix.task }}"
+    - run: bash -c "make -j$(nproc) ${{ matrix.task }}"
 
   symbiflow:
     strategy:
@@ -74,5 +79,3 @@ jobs:
     steps:
     - uses: actions/checkout@v2
     - run: make DOCKER=1 microwatt.v
-
-