Skip to content

Commit

Permalink
Switch CI from Travis to GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgreig authored and whitequark committed Dec 29, 2020
1 parent 3e72f0a commit 583ed90
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
@@ -0,0 +1,52 @@
on:
push: {}
pull_request: {}

name: CI
jobs:
test-software:
runs-on: ubuntu-20.04
strategy:
matrix:
python:
- "3.7"
- "3.8"
steps:
- name: Check out source code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Install software
working-directory: ./software
run: pip install -e software[toolchain]
- name: Run tests
working-directory: ./software
env:
YOSYS: yowasp-yosys
NEXTPNR_ICE40: yowasp-nextpnr-ice40
ICEPACK: yowasp-icepack
run: python -W ignore::DeprecationWarning test.py

build-firmware:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install sdcc
- name: Build dependencies
working-directory: ./vendor/libfx2/firmware
run: make
- name: Build firmware
working-directory: ./firmware
run: make
1 change: 1 addition & 0 deletions software/setup.py
Expand Up @@ -38,6 +38,7 @@ def local_scheme(version):
"toolchain": [
"nmigen-yosys",
"yowasp-yosys",
"yowasp-nextpnr-ice40-5k",
"yowasp-nextpnr-ice40-8k",
],
},
Expand Down

0 comments on commit 583ed90

Please sign in to comment.