Skip to content

ci: cleanup TFM jobs #19

ci: cleanup TFM jobs

ci: cleanup TFM jobs #19

Workflow file for this run

name: amd64 TFM
on: [push, pull_request, workflow_dispatch]
jobs:
# Building using the github runner environement directly.
msvc:
strategy:
matrix:
# 8:Core3.0, 9:.Net5, 10:.Net6, 11:.Net7, 12:.Net8
lang: [8.0, 10.0, 11.0, 12.0]
build: [462, 48, 6, 7, 8]
example: [net462, net48, netcoreapp3.1, net6.0, net7.0, net8.0]
fail-fast: false
name: MSVC x lang:${{ matrix.lang }}, build:${{ matrix.build }}, test:${{ matrix.example }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install SWIG 4.2.1
run: |
(New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.2.1.zip","swigwin-4.2.1.zip");
Expand-Archive .\swigwin-4.2.1.zip .;
echo "$((Get-Item .).FullName)/swigwin-4.2.1" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Check swig
run: swig -version
# Install .NET SDKs
- name: Setup .NET Core 3.1, 6.0, 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
'3.1.x'
'6.0.x'
'8.0.x'
- name: Check dotnet
run: dotnet --info
- name: Check cmake
run: cmake --version
- name: Configure
run: cmake -S. -Bbuild -DDOTNET_LANG="${{ matrix.lang }}" -DUSE_DOTNET_${{ matrix.build }}=ON -DEXAMPLE_TFM="${{ matrix.example }}" -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES=Release -DCMAKE_INSTALL_PREFIX=install
- name: Build
run: cmake --build build --config Release --target ALL_BUILD -v
- name: Test
run: cmake --build build --config Release --target RUN_TESTS -v
- name: Install
run: cmake --build build --config Release --target INSTALL -v