# Platform specific Windows test. See verible-ci for main continuous integration.
name: windows-compile

on:
  push:
    branches:
    - master
    - main
  pull_request:
    branches:
    - master
    - main

jobs:
  WindowsBuild:
    runs-on: windows-latest
    steps:
    - name: Checkout code
      uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - name: Install dependencies
      run: choco install llvm
    # Only check flex/bison targets at the moment, since Verible cannot be
    # fully compiled on Windows (yet!)
    - name: Build flex/bison files
      run: |
        bazel build //common/analysis:command_file_lex
        bazel build //verilog/parser:verilog_y
        bazel build //verilog/parser:verilog_lex
    # Windows support is in progress, only run "working" tests
    - name: Run known-to-work tests
      run: |
        bazel test  --test_output=errors `
                    //common/... `
                    //external_libs/... `
                    //verilog/analysis/... `
                    //verilog/CST/... `
                    //verilog/formatting/... `
                    //verilog/parser/... `
                    //verilog/preprocessor/... `
                    //verilog/tools/diff/... `
                    //verilog/tools/formatter/... `
                    //verilog/tools/kythe/... `
                    //verilog/transform/...

# Platform specific Windows test. See verible-ci for main continuous integration.
name: windows-compile

on:
  push:
    branches:
    - master
    - main
  pull_request:
    branches:
    - master
    - main

jobs:
  WindowsBuild:
    runs-on: windows-latest
    steps:
    - name: Checkout code
      uses: actions/checkout@v2
      with:
        fetch-depth: 0
    - name: Install dependencies
      run: choco install llvm
    - name: Build Verible
      run: |
        bazel build -c opt //...
    # Windows support is in progress, only run "working" tests
    - name: Run known-to-work tests
      run: |
        bazel test  --test_output=errors `
                    //common/... `
                    //external_libs/... `
                    //verilog/analysis/... `
                    //verilog/CST/... `
                    //verilog/formatting/... `
                    //verilog/parser/... `
                    //verilog/preprocessor/... `
                    //verilog/tools/diff/... `
                    //verilog/tools/formatter/... `
                    //verilog/tools/kythe/... `
                    //verilog/transform/...

Enable CI Windows full-fledge build
Enable CI Windows full-fledge build
