Merge pull request #4880 from google/mizux/julia #3333
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ref: https://github.com/actions/runner-images | |
name: amd64 Windows CMake .Net | |
on: | |
push: | |
branches: | |
- main | |
- v99bugfix | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{github.workflow}}-${{github.ref}} | |
cancel-in-progress: true | |
# Building using the github runner environement directly. | |
jobs: | |
native: | |
strategy: | |
matrix: | |
cmake: [ | |
{name: "VS2022", generator: "Visual Studio 17 2022", config: Release}, | |
] | |
fail-fast: false | |
name: amd64•Windows•CMake(${{matrix.cmake.name}})•.Net | |
runs-on: windows-latest | |
env: | |
deps_src_key: amd64_windows_dotnet_deps_src | |
deps_build_key: amd64_windows_dotnet_deps_build_${{matrix.cmake.config}} | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Setup .NET 8.0 | |
uses: actions/setup-dotnet@v5 | |
with: | |
dotnet-version: 8.0.x | |
- name: Check dotnet | |
run: dotnet --info | |
# CONFIGURING CACHES | |
- name: Cache CMake dependency source code | |
uses: actions/cache@v4 | |
with: | |
key: ${{env.deps_src_key}}-${{hashFiles('CMakeLists.txt', 'cmake/**')}} | |
path: ${{github.workspace}}/build/_deps/*-src | |
- name: Cache CMake dependency build | |
uses: actions/cache@v4 | |
with: | |
key: ${{env.deps_build_key}}-${{hashFiles('CMakeLists.txt', 'cmake/**')}} | |
path: | | |
${{github.workspace}}/build/_deps/*-build | |
${{github.workspace}}/build/_deps/*-subbuild | |
- name: Check CMake | |
run: | | |
cmake --version | |
cmake -G || true | |
- name: Configure | |
run: > | |
cmake -S. -Bbuild | |
-G "${{matrix.cmake.generator}}" | |
-DCMAKE_CONFIGURATION_TYPES=${{matrix.cmake.config}} | |
-DBUILD_CXX_SAMPLES=OFF -DBUILD_CXX_EXAMPLES=OFF | |
-DBUILD_DOTNET=ON | |
- name: Build | |
run: > | |
cmake --build build | |
--config ${{matrix.cmake.config}} | |
--target ALL_BUILD | |
-v -j2 | |
- name: Test | |
run: > | |
cmake --build build | |
--config ${{matrix.cmake.config}} | |
--target RUN_TESTS | |
-v | |
- name: Install | |
run: > | |
cmake --build build | |
--config ${{matrix.cmake.config}} | |
--target INSTALL | |
-v | |
amd64_windows_cmake_dotnet: | |
runs-on: ubuntu-latest | |
needs: native | |
steps: | |
- uses: actions/checkout@v5 |