Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGibb committed Jul 17, 2024
1 parent 4ae8e8e commit 1a47e83
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/scripts/depexts/generate-actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ EOF
cat >$dir/Dockerfile << EOF
FROM nixos/nix
RUN nix-channel --update
RUN nix-shell -p gnum4 git rsync patch gnutar bzip2 gnumake wget ocamlPackages.ocaml ocamlPackages.ocaml-compiler-libs unzip
EOF
esac

Expand Down Expand Up @@ -137,7 +138,7 @@ ENTRYPOINT ["/opam/entrypoint.sh"]
EOF
else
cat >>$dir/Dockerfile << EOF
ENTRYPOINT ["nix-shell", "-p", "gnum4", "git", "rsync", "patch", "gnutar", "bzip2", "gnumake", "wget", "ocamlPackages.ocaml", "ocamlPackages.ocaml-compiler-libs", "opam", "--run", "/opam/entrypoint.sh"]
ENTRYPOINT ["nix-shell", "-p", "gnum4", "git", "rsync", "patch", "gnutar", "bzip2", "gnumake", "wget", "ocamlPackages.ocaml", "ocamlPackages.ocaml-compiler-libs", "unzip", "--run", "/opam/entrypoint.sh"]
EOF
fi

Expand All @@ -146,6 +147,18 @@ cat >$dir/entrypoint.sh << EOF
#!/bin/sh
set -eux
EOF

if [ "$target" != "nix" ]; then
cat >>$dir/entrypoint.sh << EOF
export PATH="$PATH:/usr/bin/"
chmod +x /usr/bin/opam
EOF
fi

### Generate the entrypoint
cat >$dir/entrypoint.sh << EOF
git config --global --add safe.directory /github/workspace
# Workdir is /github/workpaces
Expand Down

0 comments on commit 1a47e83

Please sign in to comment.