Skip to content

Commit

Permalink
ci: use f4pga container instead of installing in each run
Browse files Browse the repository at this point in the history
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
  • Loading branch information
umarcor committed Aug 2, 2023
1 parent cbbbb7d commit ab114e7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 110 deletions.
25 changes: 0 additions & 25 deletions .github/scripts/activate.sh

This file was deleted.

73 changes: 0 additions & 73 deletions .github/scripts/prepare_environment.sh

This file was deleted.

20 changes: 10 additions & 10 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ jobs:
- name: Build example PWM setup
run: |
export FPGA_FAM="xc7"
export F4PGA_INSTALL_DIR="${HOME}/opt/f4pga"
export F4PGA_INSTALL_DIR_FAM="${F4PGA_INSTALL_DIR}/${FPGA_FAM}"
./.github/scripts/prepare_environment.sh
source .github/scripts/activate.sh
pip3 install https://github.com/chipsalliance/f4pga/archive/main.zip#subdirectory=f4pga
cd examples/pwm
tuttest README.md build | bash -
cd -
cp examples/pwm/build/project_1_0/zynq-symbiflow/project_top.bit ./top.bit
make generate copy_sources
docker run --rm -i -v $(pwd):/wrk -w /wrk \
gcr.io/hdl-containers/conda/f4pga/xc7/z010 \
bash -le <<'EOF'
pip3 install edalize==0.4.0 fusesoc==1.12.0
make zvb
EOF
cp build/project_1_0/zynq-symbiflow/project_top.bit ../../top.bit
- name: Store bit
uses: actions/upload-artifact@v3
Expand Down
4 changes: 2 additions & 2 deletions examples/pwm/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (C) 2021 Antmicro
# SPDX-License-Identifier: Apache-2.0
all: zvb
all: generate copy_sources zvb

build:
mkdir build
Expand All @@ -15,7 +15,7 @@ copy_sources: build
cp -rf sources/ build/
cp -rf ipcores/* build/

zvb: generate copy_sources
zvb:
fusesoc --cores-root build run --tool=symbiflow --build --target zynq project_1

zvb_vivado: generate copy_sources
Expand Down

0 comments on commit ab114e7

Please sign in to comment.