diff options
| author | ruki <[email protected]> | 2026-02-14 17:45:37 +0800 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-20 16:31:35 +0300 |
| commit | d7ec0e8f525b88f2184cab499f2636b0c08822ce (patch) | |
| tree | c3a02c1bad3a6a5db9dce9e637fac0910e885347 | |
| parent | 9e9906cd7a72e14f28cd172b57ea237192f3661f (diff) | |
update haiku ci
| -rw-r--r-- | .github/workflows/freebsd.yml | 8 | ||||
| -rw-r--r-- | .github/workflows/haiku.yml | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index 92b91c84e..4f86f346c 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -19,17 +19,17 @@ jobs: script: | const fs = require('fs'); const outputFile = process.env.GITHUB_OUTPUT; - + // Always run for release events if (context.eventName === 'release') { fs.appendFileSync(outputFile, `should-run=true\n`); core.info('Release event detected. Will run tests.'); return; } - + // Execution probability (default 50%, can be overridden via env) const probability = parseFloat(process.env.RUN_PROBABILITY || '0.5'); - + // Generate deterministic "random" number based on commit SHA, run ID, and current time // Adding time ensures better randomness while keeping same commit/run consistent const timeSeed = Math.floor(Date.now() / (1000 * 60 * 60)); // Round to hour for consistency @@ -43,7 +43,7 @@ jobs: // Normalize to 0-1 range const random = Math.abs(hash) / 2147483647; const shouldRun = random < probability; - + // Use environment file instead of deprecated set-output fs.appendFileSync(outputFile, `should-run=${shouldRun}\n`); if (shouldRun) { diff --git a/.github/workflows/haiku.yml b/.github/workflows/haiku.yml index fd1a95eca..49e12beaf 100644 --- a/.github/workflows/haiku.yml +++ b/.github/workflows/haiku.yml @@ -78,4 +78,4 @@ jobs: export PATH=`pwd`/dist/bin:$PATH xrepo --version xmake l os.meminfo - xmake l string.lower "Test 源文件🎆 Message" + xmake lua -v -D tests/run.lua |
