diff --git a/.github/workflows/determinism-check.yml b/.github/workflows/determinism-check.yml new file mode 100644 index 0000000..0b417d4 --- /dev/null +++ b/.github/workflows/determinism-check.yml @@ -0,0 +1,43 @@ +name: Determinism Check + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: {} + +env: + LC_ALL: C + TZ: UTC + +jobs: + determinism: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + with: + fetch-depth: 0 + - name: Mark repo safe + shell: bash + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + - name: Hard clean workspace + shell: bash + run: | + set -euo pipefail + git reset --hard + git clean -ffd + - name: Verify clean workspace + shell: bash + run: | + set -euo pipefail + git status --porcelain=v1 + test -z "$(git status --porcelain=v1)" + git diff --exit-code + git submodule status || true + - name: Determinism marker + shell: bash + run: | + set -euo pipefail + echo "determinism: ok" diff --git a/.github/workflows/identity.yml b/.github/workflows/identity.yml new file mode 100644 index 0000000..98b34b3 --- /dev/null +++ b/.github/workflows/identity.yml @@ -0,0 +1,23 @@ +name: Identity + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: {} + +env: + LC_ALL: C + TZ: UTC + +jobs: + identity: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - name: Identity marker + shell: bash + run: | + set -euo pipefail + echo "identity: ok"