-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate circleci workflows to github actions
- Loading branch information
Showing
2 changed files
with
685 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.