ci: switch from Travis CI to Github Actions.
This commit is contained in:
parent
159a0c751c
commit
b9d9af3183
|
@ -0,0 +1,31 @@
|
||||||
|
name: ci
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
# Checkout Repository
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Install Tools
|
||||||
|
- name: Install Tools
|
||||||
|
run: |
|
||||||
|
sudo apt-get install wget build-essential python3
|
||||||
|
pip3 install setuptools
|
||||||
|
|
||||||
|
# Install (n)Migen / LiteX / Cores
|
||||||
|
- name: Install LiteX
|
||||||
|
run: |
|
||||||
|
wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
|
||||||
|
python3 litex_setup.py init install --user
|
||||||
|
|
||||||
|
# Install Project
|
||||||
|
- name: Install Project
|
||||||
|
run: python3 setup.py develop --user
|
||||||
|
|
||||||
|
# Test
|
||||||
|
- name: Run Tests
|
||||||
|
run: python3 setup.py test
|
22
.travis.yml
22
.travis.yml
|
@ -1,22 +0,0 @@
|
||||||
language: python
|
|
||||||
dist: Xenial
|
|
||||||
python: "3.6"
|
|
||||||
|
|
||||||
install:
|
|
||||||
# Get Migen / LiteX / Cores
|
|
||||||
- cd ~/
|
|
||||||
- wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py
|
|
||||||
- python3 litex_setup.py init install
|
|
||||||
# Install the version being tested
|
|
||||||
- cd $TRAVIS_BUILD_DIR
|
|
||||||
- python3 setup.py install
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
# Get RISC-V toolchain
|
|
||||||
- wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-linux-ubuntu14.tar.gz
|
|
||||||
- tar -xvf riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-linux-ubuntu14.tar.gz
|
|
||||||
- export PATH=$PATH:$PWD/riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-linux-ubuntu14/bin/
|
|
||||||
|
|
||||||
script:
|
|
||||||
- cd $TRAVIS_BUILD_DIR
|
|
||||||
- python setup.py test
|
|
|
@ -8,6 +8,8 @@
|
||||||
|
|
||||||
Copyright 2012-2020 / LiteX-Hub community
|
Copyright 2012-2020 / LiteX-Hub community
|
||||||
|
|
||||||
|
[![](https://github.com/litex-hub/litex-boards/workflows/ci/badge.svg)](https://github.com/litex-hub/litex-boards/actions) ![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)
|
||||||
|
|
||||||
[> Intro
|
[> Intro
|
||||||
--------
|
--------
|
||||||
<figure>
|
<figure>
|
||||||
|
|
Loading…
Reference in New Issue