Skip to content

Commit 3aba55b

Browse files
authored
Restore successful github action build and nuget package generation (mono#1946)
* Fix compat with newer MSVC headers allow using older versions of clang than 19 until mono#1942 * Fix bitrot on github action so main workflow works again * Full clone for checkout Support Nerdbank.GitVersioning
1 parent 69e0b82 commit 3aba55b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ jobs:
3535

3636
steps:
3737
- uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
3840

3941
- name: Setup emsdk
40-
uses: mymindstorm/setup-emsdk@v14
42+
uses: pyodide/setup-emsdk@v15
4143
with:
4244
version: ${{ env.EMSCRIPTEN_VERSION }}
4345
actions-cache-folder: emsdk-cache-${{ runner.os }}
@@ -113,7 +115,7 @@ jobs:
113115
include/**/*.h
114116
115117
create_package:
116-
runs-on: windows-2019
118+
runs-on: windows-2022
117119
needs: build
118120
if: |
119121
(github.event_name == 'push' && (github.ref == 'refs/heads/main' || contains(github.ref, 'nuget') || startsWith(github.ref, 'refs/tags/v'))) ||

src/Parser/ParserOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public void SetupMSVC(VisualStudioVersion vsVersion)
160160
AddArguments("-fms-extensions");
161161
AddArguments("-fms-compatibility");
162162
AddArguments("-fdelayed-template-parsing");
163+
AddArguments("-D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH");
163164
}
164165

165166
/// <summary>

0 commit comments

Comments
 (0)