aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/vs.yml
blob: 744ad56779dd9e7e9f1940f9ebc6b2d8fb9b1979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Visual Studio Build

on: [push, pull_request]

jobs:
  yosys-vcxsrc:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Cache sources
        id: cache-sources
        uses: actions/cache@v3
        with:
          path: .
          key: cache-yosys
      - name: Build
        run: make vcxsrc YOSYS_VER=latest
      - uses: actions/upload-artifact@v3
        with:
          name: vcxsrc
          path: yosys-win32-vcxsrc-latest.zip
  
  build:
    runs-on: windows-2019
    needs: yosys-vcxsrc
    steps:  
      - uses: actions/download-artifact@v3
        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