9393 submodules : recursive
9494
9595 - name : Cache pack
96- uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
96+ uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v4
9797 with :
9898 path : |
9999 ~/.pack
@@ -116,17 +116,31 @@ jobs:
116116 git clone --depth 1 https://github.com/stefan-hoeck/idris2-pack.git "$HOME/idris2-pack"
117117 cd "$HOME/idris2-pack"
118118 # Use the bootstrap script in non-interactive mode
119- bash install.bash </dev/null || echo "::warning::pack install had warnings"
119+ # pack's install.bash prompts for the scheme binary; feeding newlines
120+ # makes the prompt take its detected default (chezscheme) instead of
121+ # hitting EOF (which aborts the bootstrap and leaves pack uninstalled).
122+ yes '' | bash install.bash || echo "::warning::pack install had warnings"
123+ # pack installs its launcher into ~/.local/bin (newer layout) and/or
124+ # ~/.pack/bin (older); add both so `pack` resolves on PATH.
125+ echo "$HOME/.local/bin" >> "$GITHUB_PATH"
120126 echo "$HOME/.pack/bin" >> "$GITHUB_PATH"
121- export PATH="$HOME/.pack/bin:$PATH"
122- pack install-api idris2
127+ export PATH="$HOME/.local/bin:$HOME/.pack/bin:$PATH"
128+ # `install-api` is not a pack subcommand; `install-app idris2`
129+ # installs the idris2 executable into the pack bin dir so the
130+ # subsequent `idris2 --check` resolves. The base library (Prelude,
131+ # base, contrib) ships with idris2, so no .ipkg is needed for a
132+ # standalone --check.
133+ pack install-app idris2
123134 idris2 --version
124135
125- - name : Type-check A2ML. Proofs
136+ - name : Type-check A2ML core ( Proofs + v1.1 profiles/base-vocab)
126137 run : |
127138 export PATH="$HOME/.pack/bin:$PATH"
128139 cd a2ml
129140 idris2 --check src/A2ML/Proofs.idr 2>&1 | tee ../idris2-a2ml.log
141+ # v1.1 additive core: checking Profiles.idr transitively type-checks
142+ # BaseVocab.idr and TypedCore.idr (its imports).
143+ idris2 --check src/A2ML/Profiles.idr 2>&1 | tee -a ../idris2-a2ml.log
130144
131145 - name : Upload log
132146 if : always()
@@ -147,7 +161,7 @@ jobs:
147161 submodules : recursive
148162
149163 - name : Cache pack
150- uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
164+ uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v4
151165 with :
152166 path : |
153167 ~/.pack
@@ -167,10 +181,21 @@ jobs:
167181 sudo apt-get install -y build-essential libgmp-dev chezscheme
168182 git clone --depth 1 https://github.com/stefan-hoeck/idris2-pack.git "$HOME/idris2-pack"
169183 cd "$HOME/idris2-pack"
170- bash install.bash </dev/null || echo "::warning::pack install had warnings"
184+ # pack's install.bash prompts for the scheme binary; feeding newlines
185+ # makes the prompt take its detected default (chezscheme) instead of
186+ # hitting EOF (which aborts the bootstrap and leaves pack uninstalled).
187+ yes '' | bash install.bash || echo "::warning::pack install had warnings"
188+ # pack installs its launcher into ~/.local/bin (newer layout) and/or
189+ # ~/.pack/bin (older); add both so `pack` resolves on PATH.
190+ echo "$HOME/.local/bin" >> "$GITHUB_PATH"
171191 echo "$HOME/.pack/bin" >> "$GITHUB_PATH"
172- export PATH="$HOME/.pack/bin:$PATH"
173- pack install-api idris2
192+ export PATH="$HOME/.local/bin:$HOME/.pack/bin:$PATH"
193+ # `install-api` is not a pack subcommand; `install-app idris2`
194+ # installs the idris2 executable into the pack bin dir so the
195+ # subsequent `idris2 --check` resolves. The base library (Prelude,
196+ # base, contrib) ships with idris2, so no .ipkg is needed for a
197+ # standalone --check.
198+ pack install-app idris2
174199 idris2 --version
175200
176201 - name : Type-check AVOW proofs
0 commit comments