Browse Source

Restore successful github action build and nuget package generation (#1946)

* Fix compat with newer MSVC headers

allow using older versions of clang than 19 until #1942

* Fix bitrot on github action so main workflow works again

* Full clone for checkout

Support Nerdbank.GitVersioning
main
Mitch Capper (they, them) 6 days ago committed by GitHub
parent
commit
3aba55bd9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      .github/workflows/main.yml
  2. 1
      src/Parser/ParserOptions.cs

6
.github/workflows/main.yml

@ -35,9 +35,11 @@ jobs: @@ -35,9 +35,11 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup emsdk
uses: mymindstorm/setup-emsdk@v14
uses: pyodide/setup-emsdk@v15
with:
version: ${{ env.EMSCRIPTEN_VERSION }}
actions-cache-folder: emsdk-cache-${{ runner.os }}
@ -113,7 +115,7 @@ jobs: @@ -113,7 +115,7 @@ jobs:
include/**/*.h
create_package:
runs-on: windows-2019
runs-on: windows-2022
needs: build
if: |
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || contains(github.ref, 'nuget') || startsWith(github.ref, 'refs/tags/v'))) ||

1
src/Parser/ParserOptions.cs

@ -160,6 +160,7 @@ namespace CppSharp.Parser @@ -160,6 +160,7 @@ namespace CppSharp.Parser
AddArguments("-fms-extensions");
AddArguments("-fms-compatibility");
AddArguments("-fdelayed-template-parsing");
AddArguments("-D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH");
}
/// <summary>

Loading…
Cancel
Save