Try fix Win build #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: main CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
LinuxBuild: | |
runs-on: ubuntu-latest | |
steps: | |
# install deps | |
- uses: actions/checkout@v4 | |
- name: install debian-packaged dependencies | |
run: sudo apt install -y libwxgtk3.2-dev libboost-graph1.83.0 libboost-serialization1.83.0 libboost-all-dev | |
# build | |
- name: build netlist-viewer | |
run: cd NetlistViewer/build/linux && make | |
# save binary | |
- name: Save | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NetlistViewer, Linux X86-64 | |
path: NetlistViewer/build/linux/NetlistViewer | |
WindowsBuild: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
# setup vcpkg & msbuild tools | |
# NOTE: no packages/dependencies are installed at this time -- msbuild will use vcpkg to download&build dependencies | |
# specified in the vcpkg.json during the build step below. This happens because the VisualStudio solution has | |
# the 'VcpkgEnableManifest' property set to True | |
- name: Setup anew (or from cache) vcpkg (and does not build any package) | |
uses: lukka/run-vcpkg@v11.5 | |
with: | |
# as suggested, we pin the version of "vcpkg" to a specific hash (23rd March 2025) to ensure reproducible builds | |
vcpkgGitCommitId: a76b33254af4092ff45f08ec5adcd9fd06468b43 | |
- name: Integrate vcpkg | |
run: vcpkg integrate install | |
# this is going to be veeeeeeeeeeery long | |
- name: Build dependencies | |
run: vcpkg install | |
# build | |
- name: Build netlist-viewer | |
run: msbuild NetlistViewer\build\win\netlist_viewer_vs2022.vcxproj -t:rebuild -property:Configuration=Release -property:Platform=x64 |