From 531a02a6e11a769f2e05888d49ea2b4808d974e3 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Fri, 30 May 2025 12:24:10 +0200 Subject: [PATCH] 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 --- .gitea/workflows/ci.yml | 10 +++++++++- deno.jsonc | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 33a1a43..6e36623 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -36,11 +36,19 @@ jobs: continue-on-error: true 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 if: | steps.format.outcome != 'success' || steps.lint.outcome != 'success' || - steps.test.outcome != 'success' + steps.test.outcome != 'success' || + steps.compile.outcome != 'success' run: | echo "::error::One or more steps failed" exit 1 diff --git a/deno.jsonc b/deno.jsonc index a752d52..12c42a8 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -4,7 +4,7 @@ "test": "deno test -A --coverage **/__tests__/*.test.ts", "fmt": "deno fmt --check", "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: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" },