2021-05-17 03:24:30 -05:00
|
|
|
name: Visual Studio Build
|
|
|
|
|
2021-05-20 12:21:34 -05:00
|
|
|
on: [push, pull_request]
|
2021-05-17 03:24:30 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
yosys-vcxsrc:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-10-21 10:00:46 -05:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-17 03:24:30 -05:00
|
|
|
- name: Cache sources
|
|
|
|
id: cache-sources
|
2022-10-21 10:00:46 -05:00
|
|
|
uses: actions/cache@v3
|
2021-05-17 03:24:30 -05:00
|
|
|
with:
|
|
|
|
path: .
|
|
|
|
key: cache-yosys
|
|
|
|
- name: Build
|
|
|
|
run: make vcxsrc YOSYS_VER=latest
|
2022-10-21 10:00:46 -05:00
|
|
|
- uses: actions/upload-artifact@v3
|
2021-05-17 03:24:30 -05:00
|
|
|
with:
|
|
|
|
name: vcxsrc
|
|
|
|
path: yosys-win32-vcxsrc-latest.zip
|
|
|
|
|
|
|
|
build:
|
2022-01-26 11:00:41 -06:00
|
|
|
runs-on: windows-2019
|
2021-05-17 03:24:30 -05:00
|
|
|
needs: yosys-vcxsrc
|
|
|
|
steps:
|
2022-10-21 10:00:46 -05:00
|
|
|
- uses: actions/download-artifact@v3
|
2021-05-17 03:24:30 -05:00
|
|
|
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
|