Skip to content

Commit

Permalink
Merge cmake.yml into CITest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MACHIZAUD Andréa committed Apr 11, 2022
1 parent 008a05f commit 26a8ff1
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 70 deletions.
60 changes: 31 additions & 29 deletions .github/workflows/CITest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,35 +118,37 @@ jobs:
python cstest_report.py -D -t build/cstest -d ../MC;
python cstest_report.py -D -t build/cstest -f issues.cs; cd ..;
# Windows:
# runs-on: ${{ matrix.config.os }}
# name: ${{ matrix.config.name }}
# strategy:
# fail-fast: false
# matrix:
# config:
# - {
# name: 'windows x64 MSVC 64bit',
# os: windows-latest,
# arch: x64,
# python-arch: x64,
# python-version: '3.9',
# }
Windows:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.name }}
strategy:
fail-fast: false
matrix:
config:
- name: 'windows x64 MSVC 64bit'
os: windows-latest
arch: x64
platform: windows
python-arch: x64
python-version: '3.9'

# steps:
# - uses: actions/checkout@v2
steps:
- uses: actions/checkout@v3

# - name: '🛠️ Win MSVC 64 setup'
# if: contains(matrix.config.name, 'MSVC 64')
# uses: microsoft/setup-msbuild@v1
- uses: lukka/get-cmake@latest
name: Get CMake

# - name: '🚧 Win MSVC 64 build'
# if: contains(matrix.config.name, 'MSVC 64')
# shell: bash
# run: |
# # choco install cmake
# cmake --version
# mkdir build
# cd build
# cmake ..
# cmake --build . --config Release --target install
- name: '🛠️ Win MSVC 64 setup'
if: contains(matrix.config.name, 'MSVC 64')
uses: ilammy/msvc-dev-cmd@v1
with:
arch: 'x64'

- name: '🚧 Win MSVC 64 build'
if: contains(matrix.config.name, 'MSVC 64')
shell: bash
run: |
cmake --version
cmake --preset=${{ matrix.config.platform }}-x64
cmake --build --preset build-${{ matrix.config.platform }}-release
cmake --build --preset install-${{ matrix.config.platform }}-release
41 changes: 0 additions & 41 deletions .github/workflows/cmake.yml

This file was deleted.

36 changes: 36 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,24 @@
"nativeToolOptions": [ "-v" ],
"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows"}
},
{
"name": "build-linux-release",
"inherits": "build-linux",
"configuration": "Release",
"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux"}
},
{
"name": "build-macos-release",
"inherits": "build-macos",
"configuration": "Release",
"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin"}
},
{
"name": "build-windows-release",
"inherits": "build-windows",
"configuration": "Release",
"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows"}
},
{
"name": "install-linux",
"configurePreset": "linux-x64",
Expand All @@ -92,6 +110,24 @@
"inherits": "build-windows",
"targets": [ "install" ],
"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows"}
},
{
"name": "install-linux-release",
"inherits": "install-linux",
"configuration": "Release",
"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Linux"}
},
{
"name": "install-macos-release",
"inherits": "install-macos",
"configuration": "Release",
"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Darwin"}
},
{
"name": "install-windows-release",
"inherits": "install-windows",
"configuration": "Release",
"condition": {"type": "equals", "lhs": "${hostSystemName}", "rhs": "Windows"}
}
]
}

0 comments on commit 26a8ff1

Please sign in to comment.