Skip to content

Commit

Permalink
Update the Makefile for regression workflow (Github).
Browse files Browse the repository at this point in the history
  • Loading branch information
jpc-lip6 committed Oct 11, 2023
1 parent 009ccb8 commit f53fed6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
python-dev-is-python3 python3-doit \
qtbase5-dev qtbase5-dev-tools libqt5svg5-dev libqwt-qt5-dev \
libeigen3-dev liblemon-dev \
autotools-dev automake \
autotools-dev automake meson \
libxt-dev libxpm-dev libmotif-dev \
tcl-dev libffi-dev
- name: ccache
Expand All @@ -53,14 +53,15 @@ jobs:
sudo ln -s ${{ env.installDir }}/bin/* /usr/bin/
- name: Check Yosys share directory
run: ls -1 ${{ github.workspace }}/coriolis-2.x/Linux.x86_64/Release.Shared/install/share/yosys
- name: Build Alliance
# - name: Build Alliance
# run: |
# export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
# ${{ github.workspace }}/coriolis-2.x/src/coriolis/bootstrap/allianceInstaller.sh --github-runner=${{ github.workspace }}
- name: Build Coriolis & Alliance
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
${{ github.workspace }}/coriolis-2.x/src/coriolis/bootstrap/allianceInstaller.sh --github-runner=${{ github.workspace }}
- name: Build Coriolis
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
${{ github.workspace }}/coriolis-2.x/src/coriolis/bootstrap/ccb.py --root=${{ github.workspace }}/coriolis-2.x --project=coriolis --make="-j4 install"
cd ${{ github.workspace }}/coriolis-2.x/src/coriolis
make install SRC_ROOT=${{ github.workspace }}/coriolis-2.x ISYS_ROOT=${{ github.workspace }}/coriolis-2.x/Linux.x86_64/Release.Shared install install_alliance
- name: Check for binaries
run: ls -1 ${{ github.workspace }}/coriolis-2.x/Linux.x86_64/Release.Shared/install/bin
- name: Run the reference set of designs
Expand Down
32 changes: 17 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
SMP_FLAGS = -j$(shell nproc)
endif

ISYS_ROOT = $(shell ./bootstrap/coriolisEnv.py --query-inst-root)
SRC_ROOT = $(shell ./bootstrap/coriolisEnv.py --query-src-root)
BUILD_ROOT = $(ISYS_ROOT)/build
INST_ROOT = $(ISYS_ROOT)/install
SRC_ALLIANCE_ROOT = $(SRC_ROOT)/alliance/alliance/src
ISYS_ROOT = $(shell ./bootstrap/coriolisEnv.py --query-inst-root)
SRC_ROOT = $(shell ./bootstrap/coriolisEnv.py --query-src-root)
BUILD_ROOT = $(ISYS_ROOT)/build
INST_ROOT = $(ISYS_ROOT)/install
SRC_CORIOLIS = $(SRC_ROOT)/coriolis
SRC_ALLIANCE = $(SRC_ROOT)/alliance/alliance/src


help:
Expand All @@ -45,18 +46,19 @@ help:
echo " "; \
echo " Note: The Alliance repository must have been cloned beforehand"; \
echo "============================================================================"; \
echo "SMP_FLAGS = $(SMP_FLAGS)" ; \
echo "BUILD_ROOT = $(BUILD_ROOT)" ; \
echo "INST_ROOT = $(INST_ROOT)" ; \
echo "SRC_ROOT = $(SRC_ROOT)" ; \
echo "SMP_FLAGS = $(SMP_FLAGS)" ; \
echo "BUILD_ROOT = $(BUILD_ROOT)" ; \
echo "INST_ROOT = $(INST_ROOT)" ; \
echo "SRC_CORIOLIS = $(SRC_CORIOLIS)" ; \
echo "SRC_ALLIANCE = $(SRC_ALLIANCE)" ; \
echo "============================================================================";


check_dir:
@if [ "`pwd`" != "${HOME}/coriolis-2.x/src/coriolis" ]; then \
@if [ "`pwd`" != "$(SRC_CORIOLIS)" ]; then \
echo "Coriolis uses a fixed directory from the user's root."; \
echo "You must put in:"; \
echo " <${HOME}/coriolis-2.x/src/coriolis>"; \
echo " <$(SRC_CORIOLIS)>"; \
echo "Instead of:"; \
echo " <`pwd`>"; \
echo "Stopping build."; \
Expand Down Expand Up @@ -102,9 +104,9 @@ uninstall: check_dir


check_alliance_dir:
@if [ ! -d "$(SRC_ROOT)/alliance" ]; then \
@if [ ! -d "$(SRC_ALLIANCE)" ]; then \
echo "Alliance source repository not found in:"; \
echo " $(SRC_ROOT)/alliance"; \
echo " $(SRC_ALLIANCE)"; \
echo "Stopping build."; \
exit 1; \
fi
Expand All @@ -113,11 +115,11 @@ check_alliance_dir:
install_alliance:
@export ALLIANCE_TOP=$(INST_ROOT); \
export LD_LIBRARY_PATH=$(INST_ROOT)/lib:${LD_LIBRARY_PATH}; \
cd $(SRC_ALLIANCE_ROOT); \
cd $(SRC_ALLIANCE); \
sed -i 's,dirs="\\$$newdirs documentation",dirs="$$newdirs",' ./autostuff; \
./autostuff clean; ./autostuff; \
mkdir -p $(BUILD_ROOT); cd $(BUILD_ROOT); \
$(SRC_ALLIANCE_ROOT)/configure --prefix=$(INST_ROOT) --enable-alc-shared; \
$(SRC_ALLIANCE)/configure --prefix=$(INST_ROOT) --enable-alc-shared; \
make -j1 install


0 comments on commit f53fed6

Please sign in to comment.