Merge pull request #251 from umarcor/ci/containers

ci: use job.container
pull/252/head
Michael Neuling 4 years ago committed by GitHub
commit d839037f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -10,17 +10,21 @@ jobs:


build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghdl/vunit:llvm
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: docker pull ghdl/vunit:llvm - run: make GNATMAKE='gnatmake -j'$(nproc)
- run: docker run -t -v $PWD:/build -w /build ghdl/vunit:llvm bash -c "make GNATMAKE='gnatmake -j'$(nproc)"


py: py:
needs: [build] needs: [build]
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghdl/vunit:llvm
steps: steps:
- uses: actions/checkout@v2 - 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: test:
needs: [build] needs: [build]
@ -43,9 +47,10 @@ jobs:
"{900..999}", "{900..999}",
] ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghdl/vunit:llvm
steps: steps:
- uses: actions/checkout@v2 - 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: symbiflow:
strategy: strategy:
@ -74,5 +79,3 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: make DOCKER=1 microwatt.v - run: make DOCKER=1 microwatt.v



Loading…
Cancel
Save