feat(ci): add compile steps to CI workflow
All checks were successful
Auto Changelog & Release / detect-version-change (push) Successful in 3s
Auto Changelog & Release / release (push) Has been skipped
Auto Changelog & Release / changelog-only (push) Successful in 7s
CI / build (push) Successful in 15s

- Introduces compile steps for amd64 and arm64 targets in CI workflow
- Updates failure condition to include compile step outcomes
- Enhances local CI task to include amd64 build process
This commit is contained in:
2025-05-30 12:24:10 +02:00
parent f3f2c61da0
commit 531a02a6e1
2 changed files with 10 additions and 2 deletions

View File

@@ -36,11 +36,19 @@ jobs:
continue-on-error: true continue-on-error: true
run: deno task test run: deno task test
- name: Compile
id: compile
continue-on-error: true
run: |
deno task build:amd64
deno task build:arm64
- name: Fail if any step failed - name: Fail if any step failed
if: | if: |
steps.format.outcome != 'success' || steps.format.outcome != 'success' ||
steps.lint.outcome != 'success' || steps.lint.outcome != 'success' ||
steps.test.outcome != 'success' steps.test.outcome != 'success' ||
steps.compile.outcome != 'success'
run: | run: |
echo "::error::One or more steps failed" echo "::error::One or more steps failed"
exit 1 exit 1

View File

@@ -4,7 +4,7 @@
"test": "deno test -A --coverage **/__tests__/*.test.ts", "test": "deno test -A --coverage **/__tests__/*.test.ts",
"fmt": "deno fmt --check", "fmt": "deno fmt --check",
"lint": "deno lint", "lint": "deno lint",
"ci": "deno task fmt && deno task lint && deno task test", // For local CI checks "ci": "deno task fmt && deno task lint && deno task test && build:amd64", // For local CI checks
"build:amd64": "deno compile --target x86_64-unknown-linux-gnu --include VERSION --include src/i18n/de.jsonc --include src/i18n/en.jsonc --allow-env --allow-write --allow-read --output dist/systemd-timer-linux-amd64 src/mod.ts", "build:amd64": "deno compile --target x86_64-unknown-linux-gnu --include VERSION --include src/i18n/de.jsonc --include src/i18n/en.jsonc --allow-env --allow-write --allow-read --output dist/systemd-timer-linux-amd64 src/mod.ts",
"build:arm64": "deno compile --target aarch64-unknown-linux-gnu --include VERSION --include src/i18n/de.jsonc --include src/i18n/en.jsonc --allow-env --allow-write --allow-read --output dist/systemd-timer-linux-arm64 src/mod.ts" "build:arm64": "deno compile --target aarch64-unknown-linux-gnu --include VERSION --include src/i18n/de.jsonc --include src/i18n/en.jsonc --allow-env --allow-write --allow-read --output dist/systemd-timer-linux-arm64 src/mod.ts"
}, },