Skip to content
Closed
26 changes: 26 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This workflow will build a C++ project using g++
name: C++ Build with g++

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Install MinGW (for g++)
run: |
choco install mingw
echo "C:\tools\mingw64\bin" >> $env:GITHUB_PATH
- name: Build C++ Project
run: |
$cppFiles = Get-ChildItem -Path ../../../src -Filter *.cs | ForEach-Object { $_.FullName }
g++ -o output.exe -Wall -Wextra -O2 $cppFiles
- name: Run Executable
run: ./output.exe
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "8.0.303"
"version": "8.0.403"
}
}
Loading
Loading