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" },