mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
Setup github actions (#369)
* First working yml for github actions * Remove redundant lines * Test with building ghdl from source * Re-enable all versions of python * Re-enable all versions of python * python-3.11 not available yet * Add weekly cron on Sunday Co-authored-by: Douglas Kastle <douglas.kastle@gmail.com>
This commit is contained in:
parent
cd869c149c
commit
1a4f5cd4e9
53
.github/workflows/test_checkin.yml
vendored
Normal file
53
.github/workflows/test_checkin.yml
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
name: Test myhdl
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false # So that one fail doesn't stop remaining tests
|
||||
matrix:
|
||||
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
|
||||
os: [ubuntu-latest]
|
||||
target: [core, iverilog, ghdl]
|
||||
|
||||
env:
|
||||
CI_TARGET: ${{ matrix.target }}
|
||||
TERM: xterm-256color # for tput in the script file
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip pytest
|
||||
python -m pip install .
|
||||
- name: Report Environment
|
||||
run: |
|
||||
echo "Runing tests with env set to : ${CI_TARGET}"
|
||||
- name: Install iverilog
|
||||
if: ${{ env.CI_TARGET == 'iverilog' }}
|
||||
run: |
|
||||
sudo apt-get -qq update;
|
||||
sudo apt-get install -y iverilog;
|
||||
- name: Install ghdl
|
||||
if: ${{ env.CI_TARGET == 'ghdl' }}
|
||||
run: |
|
||||
git clone https://github.com/ghdl/ghdl.git;
|
||||
cd ghdl;
|
||||
sudo apt install gnat;
|
||||
./configure --prefix=/usr/local;
|
||||
make;
|
||||
sudo make install;
|
||||
cd ..;
|
||||
- name: Run Tests
|
||||
run: |
|
||||
./scripts/ci.sh
|
Loading…
x
Reference in New Issue
Block a user