A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bytecodealliance/wit-bindgen/commit/86e8ae2b8b97f11b73b273345b0e00340f017270 below:

[c#] Enable running the C# tests on linux (#1200) · bytecodealliance/wit-bindgen@86e8ae2 · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+16

-5

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+16

-5

lines changed Original file line number Diff line number Diff line change

@@ -60,6 +60,10 @@ jobs:

60 60

os: [ubuntu-latest, macos-latest, windows-latest]

61 61

# moonbit removed from language matrix for now - causing CI failures

62 62

lang: [c, rust, teavm-java, go, csharp]

63 +

exclude:

64 +

# For now csharp doesn't work on macos, so exclude it from testing.

65 +

- os: macos-latest

66 +

lang: csharp

63 67

runs-on: ${{ matrix.os }}

64 68

steps:

65 69

- uses: actions/checkout@v4

@@ -73,7 +77,7 @@ jobs:

73 77

if: matrix.lang == 'rust'

74 78 75 79

- uses: ./.github/actions/install-wasi-sdk

76 -

if: matrix.lang == 'c' || (matrix.lang == 'csharp' && matrix.os == 'windows-latest')

80 +

if: matrix.lang == 'c' || matrix.lang == 'csharp'

77 81 78 82

- name: Setup .NET

79 83

uses: actions/setup-dotnet@v4

Original file line number Diff line number Diff line change

@@ -91,13 +91,20 @@ impl CSProjectLLVMBuilder {

91 91

);

92 92 93 93

if self.aot {

94 +

let os = match std::env::consts::OS {

95 +

"windows" => "win",

96 +

"linux" => std::env::consts::OS,

97 +

other => todo!("OS {} not supported", other),

98 +

};

99 + 94 100

csproj.push_str(

95 -

r#"

101 +

&format!(

102 +

r#"

96 103

<ItemGroup>

97 104

<PackageReference Include="Microsoft.DotNet.ILCompiler.LLVM" Version="10.0.0-*" />

98 -

<PackageReference Include="runtime.win-x64.Microsoft.DotNet.ILCompiler.LLVM" Version="10.0.0-*" />

105 +

<PackageReference Include="runtime.{os}-x64.Microsoft.DotNet.ILCompiler.LLVM" Version="10.0.0-*" />

99 106

</ItemGroup>

100 -

"#,

107 +

"#),

101 108

);

102 109 103 110

fs::write(

Original file line number Diff line number Diff line change

@@ -659,7 +659,7 @@ fn tests(name: &str, dir_name: &str) -> Result<Vec<PathBuf>> {

659 659

}

660 660 661 661

#[cfg(feature = "csharp")]

662 -

if cfg!(windows) && !c_sharp.is_empty() {

662 +

if !c_sharp.is_empty() {

663 663

let (resolve, world) = resolve_wit_dir(&dir);

664 664

for path in c_sharp.iter() {

665 665

let world_name = &resolve.worlds[world].name;

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4