Skip to content

Commit dd6963b

Browse files
committed
ci(abi): run Idris2 type-check in the pinned idris2-pack container
The idris-typecheck job failed on main: idris2 is not in Ubuntu's apt repos (E: Unable to locate package idris2), so it never type-checked the model — leaving the Types.idr/Foreign.idr changes machine-unverified. Run the job inside ghcr.io/stefan-hoeck/idris2-pack (the community- standard image, ships idris2 + base), pinned by sha256 digest. Includes a refresh command in a comment for future digest bumps. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TaWWedv6VQqeZaPvc94keN
1 parent c8f04e8 commit dd6963b

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/abi-contract.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,19 @@ jobs:
5656
name: Idris2 model type-checks
5757
runs-on: ubuntu-latest
5858
timeout-minutes: 20
59+
# idris2 is not packaged for Ubuntu; run inside the community-standard
60+
# idris2-pack image (ships idris2 + base), pinned by digest. Refresh the
61+
# digest with:
62+
# curl -sSL "https://ghcr.io/token?scope=repository:stefan-hoeck/idris2-pack:pull" \
63+
# | sed -n 's/.*"token":"\([^"]*\)".*/\1/p' | xargs -I{} \
64+
# curl -sSI -H "Authorization: Bearer {}" \
65+
# https://ghcr.io/v2/stefan-hoeck/idris2-pack/manifests/latest | grep -i docker-content-digest
66+
container:
67+
image: ghcr.io/stefan-hoeck/idris2-pack@sha256:370e2ab066251cf278ac6928d9201ade0aca70c4e7ee1cc434d25bcea1669b29
5968
steps:
6069
- name: Checkout
6170
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6271

63-
- name: Install Idris2
64-
run: sudo apt-get update && sudo apt-get install -y idris2
65-
6672
- name: Type-check the ABI package
6773
working-directory: src/interface/abi
6874
run: idris2 --typecheck gsa-abi.ipkg

0 commit comments

Comments
 (0)