From 9458bb1cf69d9ca41d699189b1fd7296441f44e0 Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Fri, 15 Dec 2023 11:06:43 +0100 Subject: [PATCH] Build in CI --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5fa9902 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: CI +run-name: Continuous Integration +on: [push] +jobs: + CI: + name: Continuous Integration + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Fetch nextpnr-ecp5 and Yosys + run: wget https://github.com/fallen/yosys_nextpnr_tools_for_ci/raw/main/tools.tar.gz + - name: Install nextpnr-ecp5 and Yosys + run: sudo tar -C / -xzf $PWD/tools.tar.gz + - name: Install Python requirements + run: | + sudo apt-get -y install python3-pip + sudo -H pip3 install --upgrade pip + pip install pipenv + pipenv install --ignore-pipfile + - name: Build the FPGA bitstream + run: | + nextpnr-ecp5 --version + yosys --version + pipenv run python3 ./sucrela.py --build \ No newline at end of file