-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add Windows build and separate Ubuntu job
Splits CI workflow into Ubuntu and Windows jobs. Adds C++ compilation and test execution for Windows. Retains .NET setup and tests for both.
- Loading branch information
1 parent
76fdfe9
commit 7612d1c
Showing
1 changed file
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
branches: [ master ] | ||
|
||
jobs: | ||
build-and-test: | ||
build-and-test-ubuntu: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -24,7 +24,36 @@ jobs: | |
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '8.0.x' # Updated to .NET 8.0 | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|
||
- name: Build C# project | ||
run: dotnet build --no-restore | ||
|
||
- name: Run C# Tests | ||
run: dotnet run --project crdt-lite.csproj | ||
|
||
build-and-test-windows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup MSVC | ||
uses: microsoft/[email protected] | ||
|
||
- name: Compile and Run C++ Tests | ||
run: | | ||
cl.exe /std:c++20 /EHsc /Fe:crdt.exe tests.cpp && .\crdt.exe | ||
cl.exe /std:c++20 /EHsc /Fe:list-crdt.exe list_tests.cpp && .\list-crdt.exe | ||
shell: cmd | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '8.0.x' | ||
|
||
- name: Restore dependencies | ||
run: dotnet restore | ||
|