diff options
| author | ruki <[email protected]> | 2026-02-14 17:45:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-02-14 17:45:37 +0800 |
| commit | 0cebadf47e5ee6b24d50a495617ae84608c1b199 (patch) | |
| tree | 900a9c661fcf76320a058c208091d51573b256f9 | |
| parent | 66ab9eb3c4a176c4d92acd88d76f99d27b06f632 (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 |
