3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-07-18 05:05:45 +00:00

ci: fix silimate release

- add option to test release flow without pushing to main
- add cmake to musllinux
- upgrade manylinux to rh-devtoolset-11
- add llvm to macos
- made CMake no longer error on unused parameters because we have some functions that are different from upstream but we'd like to keep the same signature
This commit is contained in:
Mohamed Gaber 2026-06-23 04:57:17 +03:00
parent bc56d9b3c0
commit e804c1e3c2
2 changed files with 9 additions and 4 deletions

View file

@ -35,7 +35,7 @@ jobs:
tcl-dev zlib-dev libffi-dev \
libdwarf-dev elfutils-dev \
python3 python3-dev py3-pip py3-setuptools py3-wheel \
git pkgconf ccache
git pkgconf cmake
git config --global --add safe.directory /src
git submodule foreach --recursive git config --global --add safe.directory \$toplevel/\$sm_path
@ -81,9 +81,11 @@ jobs:
set -ex
yum install -y tcl-devel zlib-devel libffi-devel \
flex gperf ccache patchelf \
devtoolset-11 flex gperf patchelf \
elfutils-devel elfutils-libelf-devel libdwarf-devel
source /opt/rh/devtoolset-11/enable
# Build bison >= 3.x from source
curl -L https://ftp.gnu.org/gnu/bison/bison-3.8.2.tar.gz | tar -xzC /tmp
cd /tmp/bison-3.8.2 && ./configure && make -j$(nproc) && make install
@ -137,7 +139,8 @@ jobs:
- name: Install dependencies
run: |
brew install bison flex gperf tcl-tk@8 libffi dwarfutils libelf ccache
brew install bison flex gperf tcl-tk@8 libffi dwarfutils libelf ccache llvm
echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH
pip3 install pybind11 cxxheaderparser setuptools wheel
- name: Build Verific tclmain
@ -160,6 +163,8 @@ jobs:
path: dist/*.whl
release:
# allow testing outside main branch
if: github.ref_name == 'main'
runs-on: ubuntu-latest
needs: [build-linux-wheel, build-manylinux-wheel, build-macos-wheel]
name: Create GitHub releases

View file

@ -94,7 +94,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
endif()
set(no_abc_options
"$<$<AND:$<NOT:$<BOOL:$<TARGET_PROPERTY:YOSYS_IS_ABC>>>,$<CONFIG:Sanitize>>:-fsanitize=${SANITIZE}>"
"$<$<NOT:$<BOOL:$<TARGET_PROPERTY:YOSYS_IS_ABC>>>:-Wall;-Wextra;-Werror=unused>"
"$<$<NOT:$<BOOL:$<TARGET_PROPERTY:YOSYS_IS_ABC>>>:-Wall;-Wextra;-Werror=unused-variable>"
)
add_compile_options("${no_abc_options}")
add_link_options("${no_abc_options}")