mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-25 11:26:22 +00:00
Visual Studio build
This commit is contained in:
parent
ba6083da16
commit
6039446e60
3 changed files with 51 additions and 38 deletions
72
.github/workflows/extra-builds.yml
vendored
72
.github/workflows/extra-builds.yml
vendored
|
|
@ -31,41 +31,41 @@ jobs:
|
|||
echo "should_skip=${{ steps.skip_check.outputs.should_skip }}" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
# vs-prep:
|
||||
# name: Prepare Visual Studio build
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: [pre_job]
|
||||
# if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
||||
# steps:
|
||||
# - uses: actions/checkout@v5
|
||||
# with:
|
||||
# submodules: true
|
||||
# persist-credentials: false
|
||||
# - run: sudo apt-get install libfl-dev
|
||||
# - name: Build
|
||||
# run: make vcxsrc YOSYS_COMPILER="Visual Studio" VCX_DIR_NAME=yosys-win32-vcxsrc-latest
|
||||
# - uses: actions/upload-artifact@v7
|
||||
# with:
|
||||
# name: vcxsrc
|
||||
# path: yosys-win32-vcxsrc-latest.zip
|
||||
#
|
||||
# vs-build:
|
||||
# name: Visual Studio build
|
||||
# runs-on: windows-latest
|
||||
# needs: [vs-prep, pre_job]
|
||||
# if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
||||
# steps:
|
||||
# - uses: actions/download-artifact@v8
|
||||
# with:
|
||||
# name: vcxsrc
|
||||
# path: .
|
||||
# - name: unzip
|
||||
# run: unzip yosys-win32-vcxsrc-latest.zip
|
||||
# - name: setup-msbuild
|
||||
# uses: microsoft/setup-msbuild@v2
|
||||
# - name: MSBuild
|
||||
# working-directory: yosys-win32-vcxsrc-latest
|
||||
# run: msbuild YosysVS.sln /p:PlatformToolset=v142 /p:Configuration=Release /p:WindowsTargetPlatformVersion=10.0.26100.0
|
||||
vs-build:
|
||||
name: Visual Studio build
|
||||
runs-on: windows-latest
|
||||
needs: [pre_job]
|
||||
if: (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') && needs.pre_job.outputs.should_skip != 'true'
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
submodules: true
|
||||
persist-credentials: false
|
||||
|
||||
- name: Setup MSVC
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
- name: Install flex/bison
|
||||
shell: pwsh
|
||||
run: |
|
||||
choco install winflexbison3 --no-progress
|
||||
|
||||
# Make tools visible to CMake
|
||||
echo "C:\Program Files (x86)\GnuWin32\bin" | Out-File -Append -FilePath $env:GITHUB_PATH
|
||||
echo "C:\ProgramData\chocolatey\lib\winflexbison3\tools" | Out-File -Append -FilePath $env:GITHUB_PATH
|
||||
|
||||
- name: Configure CMake
|
||||
run: >
|
||||
cmake -S . -B build
|
||||
-A x64
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DYOSYS_WITHOUT_ABC=ON
|
||||
|
||||
- name: Build
|
||||
run: >
|
||||
cmake --build build
|
||||
--config Release
|
||||
--parallel
|
||||
|
||||
wasi-build:
|
||||
name: WASI build
|
||||
|
|
@ -121,7 +121,7 @@ jobs:
|
|||
extra-builds-result:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
# - vs-build
|
||||
- vs-build
|
||||
- wasi-build
|
||||
- nix-build
|
||||
if: always()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue