print resolved Zig version

This commit is contained in:
Alex Rønne Petersen
2026-01-10 19:50:00 +01:00
parent e7d1537c37
commit 449e896088
3 changed files with 5 additions and 0 deletions
+3
View File
@@ -4,6 +4,7 @@ const fs = require('fs').promises;
const core = require('@actions/core');
const tc = require('@actions/tool-cache');
const cache = require('@actions/cache');
const exec = require('@actions/exec');
const common = require('./common');
const minisign = require('./minisign');
@@ -178,6 +179,8 @@ async function main() {
}
core.addPath(zig_dir);
const zig_version = (await exec.getExecOutput('zig', ['version'])).stdout.trim();
core.info(`Resolved Zig version ${zig_version}`);
const cache_path = common.getZigCachePath();
core.exportVariable('ZIG_GLOBAL_CACHE_DIR', cache_path);
+1
View File
@@ -11,6 +11,7 @@
"dependencies": {
"@actions/cache": "^4.0.2",
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/github": "^6.0.1",
"@actions/tool-cache": "^2.0.2"
}
+1
View File
@@ -12,6 +12,7 @@
"dependencies": {
"@actions/cache": "^4.0.2",
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/github": "^6.0.1",
"@actions/tool-cache": "^2.0.2"
}