mirror of
https://github.com/chipsalliance/f4pga.git
synced 2025-01-03 03:43:37 -05:00
test: add environment.yml and requirements.txt files
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
parent
033d09cc5c
commit
b8efd597e4
6 changed files with 87 additions and 13 deletions
.github
test/envs
16
.github/scripts/prepare_environment.sh
vendored
16
.github/scripts/prepare_environment.sh
vendored
|
@ -23,13 +23,6 @@ sudo apt update -y
|
|||
sudo apt install -y git wget xz-utils
|
||||
echo '::endgroup::'
|
||||
|
||||
|
||||
echo '::group::Clone f4pga-examples'
|
||||
git clone --recurse-submodules https://github.com/chipsalliance/f4pga-examples
|
||||
cd f4pga-examples
|
||||
echo '::endgroup::'
|
||||
|
||||
|
||||
FPGA_FAM=${FPGA_FAM:=xc7}
|
||||
|
||||
echo '::group::Install Miniconda3'
|
||||
|
@ -43,7 +36,7 @@ echo '::endgroup::'
|
|||
|
||||
|
||||
echo '::group::Create environment'
|
||||
conda env create -f "$FPGA_FAM"/environment.yml
|
||||
conda env create -f test/envs/"$FPGA_FAM"/environment.yml
|
||||
echo '::endgroup::'
|
||||
|
||||
|
||||
|
@ -54,23 +47,20 @@ case "$FPGA_FAM" in
|
|||
F4PGA_TIMESTAMP='20220729-181657'
|
||||
F4PGA_HASH='7833050'
|
||||
for PKG in install-xc7 xc7a50t_test; do
|
||||
wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/${F4PGA_TIMESTAMP}/symbiflow-arch-defs-${PKG}-${F4PGA_HASH}.tar.xz | tar -xJC $F4PGA_INSTALL_DIR/$FPGA_FAM/install
|
||||
wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/${F4PGA_TIMESTAMP}/symbiflow-arch-defs-${PKG}-${F4PGA_HASH}.tar.xz | tar -xJC $F4PGA_INSTALL_DIR_FAM/install
|
||||
done
|
||||
;;
|
||||
eos-s3)
|
||||
F4PGA_TIMESTAMP='20220729-181657'
|
||||
F4PGA_HASH='7833050'
|
||||
for PKG in install-ql ql-eos-s3_wlcsp; do
|
||||
wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/${F4PGA_TIMESTAMP}/symbiflow-arch-defs-${PKG}-${F4PGA_HASH}.tar.xz | tar -xJC $F4PGA_INSTALL_DIR/$FPGA_FAM/install
|
||||
wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/${F4PGA_TIMESTAMP}/symbiflow-arch-defs-${PKG}-${F4PGA_HASH}.tar.xz | tar -xJC $F4PGA_INSTALL_DIR_FAM/install
|
||||
done
|
||||
;;
|
||||
esac
|
||||
echo '::endgroup::'
|
||||
|
||||
|
||||
cd ..
|
||||
|
||||
|
||||
echo '::group::Add f4pga-env'
|
||||
|
||||
F4PGA_DIR_ROOT='install'
|
||||
|
|
9
.github/workflows/Pipeline.yml
vendored
9
.github/workflows/Pipeline.yml
vendored
|
@ -123,7 +123,12 @@ jobs:
|
|||
if: matrix.flow == 'F4PGA'
|
||||
run: |
|
||||
. ./.github/scripts/activate.sh
|
||||
|
||||
echo '::group::Clone f4pga-examples'
|
||||
git clone --recurse-submodules https://github.com/chipsalliance/f4pga-examples
|
||||
cd f4pga-examples
|
||||
echo '::endgroup::'
|
||||
|
||||
f4pga -vv build --flow ../.github/${{ matrix.fam }}_test.json
|
||||
|
||||
- name: '📤 Upload artifact: ${{ matrix.fam }} bitstream'
|
||||
|
@ -151,7 +156,11 @@ jobs:
|
|||
|
||||
export VPRPATH=$(f4pga-env bin)
|
||||
|
||||
echo '::group::Clone f4pga-examples'
|
||||
git clone --recurse-submodules https://github.com/chipsalliance/f4pga-examples
|
||||
cd f4pga-examples
|
||||
echo '::endgroup::'
|
||||
|
||||
cd ${{ matrix.fam }}
|
||||
|
||||
export F4PGA_USE_DEPRECATED=true
|
||||
|
|
32
test/envs/eos-s3/environment.yml
Normal file
32
test/envs/eos-s3/environment.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Copyright (C) 2020-2022 F4PGA Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
name: eos-s3
|
||||
|
||||
channels:
|
||||
- litex-hub
|
||||
|
||||
dependencies:
|
||||
- litex-hub::yosys=0.19_10_g0098b32c6=20220706_001518_py37
|
||||
- litex-hub::symbiflow-yosys-plugins=1.0.0_7_1002_gd149693=20220706_001518
|
||||
- litex-hub::vtr-optimized=8.0.0_5664_gb7a94b90a=20220706_001518
|
||||
- make
|
||||
- lxml
|
||||
- simplejson
|
||||
- git
|
||||
- pip
|
||||
- pip:
|
||||
- -r requirements.txt
|
4
test/envs/eos-s3/requirements.txt
Normal file
4
test/envs/eos-s3/requirements.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
python-constraint
|
||||
serial
|
||||
git+https://github.com/QuickLogic-Corp/quicklogic-fasm@607849ec0bdef8740be33dbaa49d15a3d400f809
|
||||
#https://github.com/chipsalliance/f4pga/archive/main.zip#subdirectory=f4pga
|
33
test/envs/xc7/environment.yml
Normal file
33
test/envs/xc7/environment.yml
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Copyright (C) 2020-2022 F4PGA Authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
name: xc7
|
||||
|
||||
channels:
|
||||
- litex-hub
|
||||
|
||||
dependencies:
|
||||
- litex-hub::prjxray-tools=0.1_3015_gae546d6b=20220708_203356
|
||||
- litex-hub::prjxray-db=0.0_257_g0a0adde=20220708_203356
|
||||
- litex-hub::vtr-optimized=8.0.0_5699_g25e723a24=20220708_203356
|
||||
- litex-hub::yosys=0.19_21_ga82eff2e2=20220720_081021_py37
|
||||
- litex-hub::symbiflow-yosys-plugins=1.0.0_7_1027_g52cdcc4=20220720_081021
|
||||
- make
|
||||
- lxml
|
||||
- git
|
||||
- pip
|
||||
- pip:
|
||||
- -r requirements.txt
|
6
test/envs/xc7/requirements.txt
Normal file
6
test/envs/xc7/requirements.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
python-constraint
|
||||
pyyaml
|
||||
fasm
|
||||
git+https://github.com/SymbiFlow/prjxray.git@e25c20a8f158cc5e94eb62e3b74e16fc9d6c1d26#egg=prjxray
|
||||
git+https://github.com/symbiflow/xc-fasm.git@14afc2bae24cbf6ee5e7d057a58b4cbd776358d0#egg=xc-fasm
|
||||
#https://github.com/chipsalliance/f4pga/archive/main.zip#subdirectory=f4pga
|
Loading…
Reference in a new issue