ci: rm f4pga-env
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
This commit is contained in:
parent
1c444643b6
commit
5f5e54315e
|
@ -1,18 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
bin)
|
||||
(
|
||||
cd $(dirname "$0")
|
||||
pwd
|
||||
)
|
||||
;;
|
||||
share)
|
||||
(
|
||||
cd $(dirname "$0")/../share/f4pga
|
||||
pwd
|
||||
)
|
||||
;;
|
||||
esac
|
|
@ -229,42 +229,3 @@ jobs:
|
|||
run: |
|
||||
PYTHONPATH=$(pwd) python3 f4pga/__init__.py
|
||||
PYTHONPATH=$(pwd) python3 f4pga/__init__.py -h
|
||||
|
||||
|
||||
f4pga-env:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
F4PGA_INSTALL_DIR: /opt/f4pga
|
||||
FPGA_FAM: xc7
|
||||
|
||||
steps:
|
||||
|
||||
- name: 🧰 Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: 🔧 Prepare environment
|
||||
run: ./.github/scripts/prepare_environment.sh
|
||||
|
||||
- name: 🛠️ Install f4pga-env
|
||||
run: |
|
||||
cd ./.github/scripts
|
||||
. ./envvars.sh
|
||||
export PATH="${F4PGA_INSTALL_DIR_FAM_ROOT}/bin:$PATH"
|
||||
. ./activate.sh
|
||||
|
||||
F4PGA_DIR_BIN="$F4PGA_INSTALL_DIR_FAM_ROOT"/bin/
|
||||
mkdir -p "$F4PGA_DIR_BIN"
|
||||
cp f4pga-env "$F4PGA_DIR_BIN"
|
||||
|
||||
cd "$F4PGA_DIR_BIN"
|
||||
ls -lah
|
||||
|
||||
- name: 🚧 Test f4pga-env
|
||||
run: |
|
||||
. ./.github/scripts/activate.sh
|
||||
|
||||
echo "F4PGA_BIN_DIR=$(f4pga-env bin)" >> "$GITHUB_ENV"
|
||||
echo "F4PGA_SHARE_DIR=$(f4pga-env share)" >> "$GITHUB_ENV"
|
||||
|
||||
- name: 🚧 env
|
||||
run: env
|
||||
|
|
Loading…
Reference in New Issue