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 3caf339 commit bf21fec
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/scripts/depexts/generate-actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@ cd /github/workspace
#git clone https://github.com/ocaml/opam --single-branch --branch 2.2 --depth 1 local-opam
#cd local-opam
EOF

if [ $target == "nix" ]; then
cat >>$dir/entrypoint.sh << EOF
mkdir ~/.opam
echo 'global-variables: [("os-distribution", "nixos")]' >> ~/.opam/config
EOF
fi

cat >>$dir/entrypoint.sh << EOF
/usr/bin/opam install . --deps
eval \$(opam env)
./configure
Expand All @@ -179,13 +190,7 @@ make
EOF

if [ $target == "nix" ]; then
cat >>$dir/entrypoint.sh << EOF
mkdir ~/.opam
echo 'global-variables: [("os-distribution", "nixos")]' >> ~/.opam/config

EOF
fi

# Test depexts

Expand Down

0 comments on commit bf21fec

Please sign in to comment.