Kill Process on Cancellation-Request #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-22.04", "windows-latest"] | |
vunit: ["4.7.0"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
# GHDL | |
- name: Install GHDL Ubuntu | |
if: startsWith(matrix.os, 'ubuntu') | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
run: | | |
mkdir ghdl | |
cd ghdl | |
wget https://github.com/ghdl/ghdl/releases/download/v0.37/ghdl-0.37-ubuntu16-mcode.tgz | |
tar -xvzf ghdl-0.37-ubuntu16-mcode.tgz | |
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gnat-4.9/gnat-4.9-base_4.9.3-3ubuntu5_amd64.deb | |
sudo dpkg --install gnat-4.9-base_4.9.3-3ubuntu5_amd64.deb | |
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gnat-4.9/libgnat-4.9_4.9.3-3ubuntu5_amd64.deb | |
sudo dpkg --install libgnat-4.9_4.9.3-3ubuntu5_amd64.deb | |
echo "::set-env name=VUNIT_GHDL_PATH::$(pwd)/bin" | |
cd .. | |
- name: Install GHDL Windows | |
if: startsWith(matrix.os, 'windows') | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
run: | | |
mkdir ghdl | |
cd ghdl | |
Invoke-WebRequest https://github.com/ghdl/ghdl/releases/download/v0.37/ghdl-0.37-mingw32-mcode.zip -OutFile ghdl.zip | |
Expand-Archive .\ghdl.zip .; | |
echo "::set-env name=VUNIT_GHDL_PATH::$(pwd)/GHDL/0.37-mingw32-mcode/bin" | |
cd .. | |
- run: echo $VUNIT_GHDL_PATH | |
# Node | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '12' | |
- run: npm install | |
# Python + VUNit | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install Python packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install vunit_hdl==${{ matrix.vunit }} |