mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
Visual Studio build action
This commit is contained in:
parent
34a08750fa
commit
d8c5d6815c
40
.github/workflows/vs.yml
vendored
Normal file
40
.github/workflows/vs.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
name: Visual Studio Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
yosys-vcxsrc:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: 'master'
|
||||||
|
- name: Cache sources
|
||||||
|
id: cache-sources
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: .
|
||||||
|
key: cache-yosys
|
||||||
|
- name: Build
|
||||||
|
run: make vcxsrc YOSYS_VER=latest
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: vcxsrc
|
||||||
|
path: yosys-win32-vcxsrc-latest.zip
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
needs: yosys-vcxsrc
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: vcxsrc
|
||||||
|
path: .
|
||||||
|
- name: unzip
|
||||||
|
run: unzip yosys-win32-vcxsrc-latest.zip
|
||||||
|
- name: setup-msbuild
|
||||||
|
uses: microsoft/setup-msbuild@v1
|
||||||
|
- name: MSBuild
|
||||||
|
working-directory: yosys-win32-vcxsrc-latest
|
||||||
|
run: msbuild YosysVS.sln /p:PlatformToolset=v142 /p:Configuration=Release /p:WindowsTargetPlatformVersion=10.0.17763.0
|
Loading…
Reference in a new issue