Skip to content

Commit

Permalink
ocaml-general - add ocaml.5.1.0 (#40)
Browse files Browse the repository at this point in the history
* ocaml-general - add ocaml.5.1.0

* remove Node.js v14 & v16 support as they are marked as EOL
  • Loading branch information
haochenx authored Sep 15, 2023
1 parent d8f5d78 commit 87e1753
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ocaml-general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
ocaml-version:
- 4.13.1
- 5.0.0
- 5.1.0
arch:
- amd64
# - arm64 # it's taking too long for the purpose of validation
Expand All @@ -47,7 +48,7 @@ jobs:
- uses: actions/checkout@v3

- name: Set up env var
run: echo "PACKAGE_INSTALL_SCRIPT_FILENAME=install_ocaml_$(eval cut -d'.' -f1 <<< ${{ matrix.ocaml-version }})_packages.sh" | tee -a $GITHUB_ENV
run: echo "PACKAGE_INSTALL_SCRIPT_FILENAME=install_ocaml_$(eval cut -d'.' -f1-2 <<< ${{ matrix.ocaml-version }})_packages.sh" | tee -a $GITHUB_ENV

- name: Set up QEMU for arm64
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -102,12 +103,11 @@ jobs:
- 4.13.1
- 4.14.1
- 5.0.0
- 5.1.0
arch:
- amd64
- arm64
node-version:
- fermium # v14 Maintenance LTS
- gallium # v16 Active LTS
- hydrogen # v18 Active LTS
- latest
os:
Expand All @@ -126,7 +126,7 @@ jobs:

- name: Set up env var
run: |
echo "PACKAGE_INSTALL_SCRIPT_FILENAME=install_ocaml_$(eval cut -d'.' -f1 <<< ${{ matrix.ocaml-version }})_packages.sh" | tee -a $GITHUB_ENV
echo "PACKAGE_INSTALL_SCRIPT_FILENAME=install_ocaml_$(eval cut -d'.' -f1-2 <<< ${{ matrix.ocaml-version }})_packages.sh" | tee -a $GITHUB_ENV
echo "DOCKER_TAG_LIST=${{ env.PACKAGE_NAME }}:${{ env.DOCKER_TAG }},${{ env.PACKAGE_NAME }}:${{ env.DOCKER_TAG }}-${{ github.sha }}" | tee -a $GITHUB_ENV | tr '=,' '\n' | sort
- name: Set up env var for alias (node hydrogen && arch amd64)
Expand Down
1 change: 1 addition & 0 deletions ocaml-general/install_ocaml_4.12_packages.sh
File renamed without changes.
1 change: 1 addition & 0 deletions ocaml-general/install_ocaml_4.14_packages.sh
File renamed without changes.
31 changes: 31 additions & 0 deletions ocaml-general/install_ocaml_5.1_packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash -xe

packages=(
dune.3.10.0
merlin
odoc.2.2.1
ppxlib.0.30.0
bisect_ppx.2.8.3
ppx_deriving.5.2.1
js_of_ocaml.5.4.0 js_of_ocaml-ppx.5.4.0 js_of_ocaml-lwt.5.4.0
jsonm.1.0.1
ezjsonm.1.3.0
ppx_optcomp.v0.16.0
brr.0.0.4
prr.0.1.1
zed.3.2.0
ppx_inline_test.v0.16.0
alcotest.1.7.0
qcheck.0.21.2
qcheck-alcotest.0.21.2
sexplib.v0.16.0 ppx_sexp_conv.v0.16.0
yojson.2.1.0 ppx_yojson_conv.v0.16.0
tezt.3.1.1
)

opam install --yes "${packages[@]}" \
&& opam clean -y --logs --repo-cache --download-cache --switch-cleanup

echo -n "exec: "
printf "%s\n" "${packages[@]}" | cut -d'.' -f1 | xargs echo opam show -f package
printf "%s\n" "${packages[@]}" | cut -d'.' -f1 | xargs opam show -f package

0 comments on commit 87e1753

Please sign in to comment.