vezel-dev / zig-toolsets Goto Github PK
View Code? Open in Web Editor NEWThe Zig compiler and standard library packaged for use in MSBuild.
License: BSD Zero Clause License
The Zig compiler and standard library packaged for use in MSBuild.
License: BSD Zero Clause License
We should be able to automate the creation of these files from project properties.
There's now an effort to port CoreCLR to RISC-V:
Once this gets far enough that users can actually run .NET apps on RISC-V, we should add a Zig toolset for this platform.
This is the only remaining platform that the .NET SDK can build on that we don't yet have a toolset package for.
Depends on: ziglang/zig#9102
As the title says - I'm working in a single project that can be compiled to different platforms, and as such need different packages to support different RIDs. So I have osx-x64
,osx-arm64
,and win-x64
. Running build on the project seems to just choose whichever package was installed last as the path, so even if I'm running on win-x64
it may choose osx-x64
.
To get around this I parse out the RID from the generated path with RegEX and replace it with the dev machine RID (and assume that the dev machine has the correct pacakge added), but I'd love a way if somehow the MSBuild props could be automatically intuited. Maybe one option could be to expose props that give you paths that represent the dev machine as well? So like ZigToolsetPath_DEV
. Or just add in "static" props that put the onus on the dev to ensure the correct package is installed, like ZigToolsetPath_win-x64
.
zig-toolsets/zig-toolsets.proj
Lines 3 to 5 in 076fdf6
Per release notes, this is expected to be fixed for 0.10.1:
The 32-bit Windows tarball is missing for this release due to (#12886). It will be available again in the 0.10.1 bugfix release.
Download URLs can be determined from: https://ziglang.org/download/index.json
This will allow faster testing of Zig fixes as we no longer have to wait for a release. The package version can just be taken verbatim from the URL above. Note that not all platforms are built daily, so only a subset would be supported.
CI failure: https://github.com/alexrp/zig-msbuild-toolsets/runs/2822284695?check_suite_focus=true
Determining projects to restore...
Downloading from "https://ziglang.org/download/0.8.0/zig-linux-aarch64-0.8.0.tar.xz" to "/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/linux-arm64/obj/zig-linux-aarch64-0.8.0.tar.xz" (37575428 bytes).
Downloading from "https://ziglang.org/download/0.8.0/zig-linux-armv7a-0.8.0.tar.xz" to "/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/linux-arm/obj/zig-linux-armv7a-0.8.0.tar.xz" (38,884,212 bytes).
Downloading from "https://ziglang.org/download/0.8.0/zig-linux-x86_64-0.8.0.tar.xz" to "/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/linux-x64/obj/zig-linux-x86_64-0.8.0.tar.xz" (41211184 bytes).
Downloading from "https://ziglang.org/download/0.8.0/zig-macos-aarch64-0.8.0.tar.xz" to "/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/osx-arm64/obj/zig-macos-aarch64-0.8.0.tar.xz" (35,292,180 bytes).
Downloading from "https://ziglang.org/download/0.8.0/zig-macos-x86_64-0.8.0.tar.xz" to "/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/osx-x64/obj/zig-macos-x86_64-0.8.0.tar.xz" (39969312 bytes).
Downloading from "https://ziglang.org/download/0.8.0/zig-windows-x86_64-0.8.0.zip" to "/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/win-x64/obj/zig-windows-x86_64-0.8.0.zip" (61,766,193 bytes).
/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/Directory.Build.targets(35,9): error MSB3932: Failed to unzip file "obj/zig-windows-x86_64-0.8.0.zip" because the file does not exist or is inaccessible. [/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/win-x64/win-x64.csproj]
Downloading from "https://ziglang.org/download/0.8.0/zig-windows-i386-0.8.0.zip" to "/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/win-x86/obj/zig-windows-i386-0.8.0.zip" (61,507,213 bytes).
/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/Directory.Build.targets(35,9): error MSB3932: Failed to unzip file "obj/zig-windows-i386-0.8.0.zip" because the file does not exist or is inaccessible. [/home/runner/work/zig-msbuild-toolsets/zig-msbuild-toolsets/win-x86/win-x86.csproj]
Error: Process completed with exit code 1.
Hash verification was removed in d739cfc (hopefully temporarily).
See:
zig-toolsets/src/Directory.Build.targets
Lines 23 to 28 in c49c7d1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.