feat(ci): add compile steps to CI workflow
- 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:
@@ -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
|
||||||
|
@@ -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"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user