fix: set version when not using latest
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Successful in 47s
Continuous Integration / TypeScript Tests (push) Successful in 56s
Continuous Integration / GitHub Actions Test (push) Failing after 20s

This commit is contained in:
2024-12-28 12:28:05 +13:00
parent 9168ecec34
commit 042eb7b9f9
4 changed files with 7 additions and 2 deletions

View File

@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="116" height="20" role="img" aria-label="Coverage: 16.47%"><title>Coverage: 16.47%</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="116" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="63" height="20" fill="#555"/><rect x="63" width="53" height="20" fill="#e05d44"/><rect width="116" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="325" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="530">Coverage</text><text x="325" y="140" transform="scale(.1)" fill="#fff" textLength="530">Coverage</text><text aria-hidden="true" x="885" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">16.47%</text><text x="885" y="140" transform="scale(.1)" fill="#fff" textLength="430">16.47%</text></g></svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="116" height="20" role="img" aria-label="Coverage: 16.27%"><title>Coverage: 16.27%</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="116" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="63" height="20" fill="#555"/><rect x="63" width="53" height="20" fill="#e05d44"/><rect width="116" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="325" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="530">Coverage</text><text x="325" y="140" transform="scale(.1)" fill="#fff" textLength="530">Coverage</text><text aria-hidden="true" x="885" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="430">16.27%</text><text x="885" y="140" transform="scale(.1)" fill="#fff" textLength="430">16.27%</text></g></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

3
dist/index.js generated vendored
View File

@@ -28310,6 +28310,9 @@ async function download(version) {
if (version == '') {
ver = await getLatestVersion();
}
else {
ver = version;
}
const url = `https://ziglang.org/download/${ver}/zig-${platform}-${architecture}-${ver}.${extension}`;
core.info(`Downloading Zig ${version} (${platform}, ${architecture}) from ${url} ...`);
const archivePath = await tc.downloadTool(url);

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -24,6 +24,8 @@ export async function download(version: string): Promise<string> {
if (version == '') {
ver = await getLatestVersion()
} else {
ver = version
}
const url = `https://ziglang.org/download/${ver}/zig-${platform}-${architecture}-${ver}.${extension}`