Skip to content

Commit

Permalink
migrate circleci workflows to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robandpdx committed Jan 5, 2024
1 parent 509532e commit d10ce85
Show file tree
Hide file tree
Showing 2 changed files with 685 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/actions/install-opam-mac/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: install-opam-mac
description: Install opam on macOS
inputs:
arch:
description: The architecture of the machine
required: false
runs:
using: composite
steps:
- name: Install opam
run: |-
if ! [ -x "$(command -v opam)" ]; then
echo "Downloading opam..."
curl -sL -o "$RUNNER_TEMP/opam" "https://github.com/ocaml/opam/releases/download/2.0.10/opam-2.0.10-${{ inputs.arch }}-macos"
echo "Installing opam..."
install -m 755 "$RUNNER_TEMP/opam" "/usr/local/bin/opam"
echo "Removing opam temp file..."
rm -f "$RUNNER_TEMP/opam"
fi
shell: bash
Loading

0 comments on commit d10ce85

Please sign in to comment.