-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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: | | ||
echo "PATH=/opt/bin:$PATH" >> "$GITHUB_ENV" | ||
echo "LD_LIBRARY_PATH=/opt/lib:$LD_LIBRARY_PATH" >> "$GITHUB_ENV" | ||
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 |