Skip to content

Commit 9a08baf

Browse files
committed
CI: Add a git workaround for OCaml/Unikraft 1.0.0
The released version of OCaml/Unikraft is failing to build for release tarball in a subdirectory of git repository
1 parent 33c0e50 commit 9a08baf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,19 @@ jobs:
7979
sudo apt-get update -y
8080
sudo apt-get install -y qemu-system-x86 qemu-system-arm
8181
opam install dune
82+
- name: Work around a bug in released OCaml/Unikraft
83+
run: |
84+
mkdir -p "$HOME/.local/bin"
85+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
86+
git="$HOME/.local/bin/git"
87+
printf '#!/bin/sh\ngit=%s\n' "$(which git)" > "$git"
88+
printf 'case "$1" in\n' >> "$git"
89+
printf ' apply) exec "$git" --work-tree=. "$@" ;;\n' >> "$git"
90+
printf ' *) exec "$git" "$@" ;;\nesac' >> "$git"
91+
chmod +x "$git"
92+
set -x
93+
cat "$git"
94+
if: ${{ matrix.ocukver == '1.0.0' }}
8295
- name: Install arch-specific packages
8396
run: |
8497
opam install \

0 commit comments

Comments
 (0)