gcontini
2020-10-31 3372269b105a6fe59c05b0632f41404619afaf1f
Failed to compile on github actions #93
2个文件已修改
39 ■■■■■ 已修改文件
.github/workflows/cpp.yml 38 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.github/workflows/cpp.yml
@@ -1,29 +1,41 @@
name: CI
name: Github_Actions
on: 
  push:
jobs:
  build-windows-vc2019:
    runs-on: windows-2019
   build-windows:
      runs-on: ${{ matrix.os }}
      strategy:
        fail-fast: false
        matrix:
          build_type: ["Debug", "Release"]
          os: ["windows-2019", "windows-2016"]
          static: ["true","false"]
    steps:
    - uses: actions/checkout@v1
    - name: Setup Boost (Windows / Linux latest)
      -  name: Setup
      shell: bash
      run: echo "BOOST_ROOT=$BOOST_ROOT_1_72_0" >> $GITHUB_ENV
    - name: Compile
      env:
        CTEST_OUTPUT_ON_FAILURE: 1
      run: |
        cd build
        cmake -G "Visual Studio 16 2019" -DLCC_PROJECT_NAME:STRING=test ..
        cmake --build . --target install --config Debug
            cmake .. -A x64 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DSTATIC_RUNTIME:BOOL=${{matrix.static}} -DLCC_PROJECT_NAME:STRING=test -DCMAKE_INSTALL_PREFIX=C:/licensecc
            cmake --build . --target install --config ${{ matrix.build_type }}
      shell: bash
    - name: Test
      run: |
        cd build 
        ctest -C Debug
            ctest -C ${{ matrix.build_type }}
      shell: bash
    - name: The job has failed
         env:
            CTEST_OUTPUT_ON_FAILURE: 1
            VIRTUAL_ENV: VM
      -  name: Inspector
         run: C:/licensecc/bin/test/lccinspector.exe
         shell: bash
      - name: On Failure print logs
      if: ${{ failure() }}
      run: type %TMP%\open-license.log
        run: |
           type $env:temp/open-license.log
README.md
@@ -6,6 +6,7 @@
[![unstable](http://badges.github.io/stability-badges/dist/unstable.svg)](http://github.com/badges/stability-badges)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![Build Status](https://travis-ci.org/open-license-manager/open-license-manager.svg?branch=develop)](https://travis-ci.org/open-license-manager/open-license-manager)
![Github_Actions](https://github.com/open-license-manager/open-license-manager/workflows/Github_Actions/badge.svg)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/62d6e1bb22d648bd85b6f3bc344a545a)](https://www.codacy.com/manual/gcontini/open-license-manager?utm_source=github.com&utm_medium=referral&utm_content=open-license-manager/open-license-manager&utm_campaign=Badge_Grade)
[![codecov](https://codecov.io/gh/open-license-manager/open-license-manager/branch/develop/graph/badge.svg)](https://codecov.io/gh/open-license-manager/open-license-manager)
[![Github Issues](https://img.shields.io/github/issues/open-license-manager/open-license-manager)](http://github.com/open-license-manager/open-license-manager/issues)