Skip to content

Commit

Permalink
Bump OCaml compiler versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgilchrist committed Dec 13, 2021
1 parent 50a21c5 commit 876bdb4
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 45 deletions.
93 changes: 48 additions & 45 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,50 +1,53 @@
name: AWS CI
on: [push]

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
run:
name: Tests
runs-on: ${{ matrix.operating-system }}
build:
strategy:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
ocaml-version: [ '4.08.1', '4.09.1', '4.10.1', '4.11.2', '4.12.0']
os:
- ubuntu-latest

ocaml-compiler:
- 4.08.x
- 4.09.x
- 4.10.x
- 4.11.x
- 4.12.x

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@master
- uses: ocaml/setup-ocaml@v2
with:
ocaml-version: ${{ matrix.ocaml-version }}
- run: |
opam pin add aws.dev -n .
opam pin add aws-lwt.dev -n .
opam pin add aws-async.dev -n .
# Pin the generated bindings
opam pin add aws-autoscaling.dev -n .
opam pin add aws-cloudformation.dev -n .
opam pin add aws-cloudtrail.dev -n .
opam pin add aws-cloudwatch.dev -n .
opam pin add aws-ec2.dev -n .
opam pin add aws-elasticache.dev -n .
opam pin add aws-elasticloadbalancing.dev -n .
opam pin add aws-rds.dev -n .
opam pin add aws-route53.dev -n .
opam pin add aws-sdb.dev -n .
opam pin add aws-sqs.dev -n .
opam pin add aws-ssm.dev -n .
opam pin add aws-sts.dev -n .
- name: Packages
run: |
opam depext -yt aws aws-lwt aws-async \
aws-autoscaling aws-cloudformation aws-cloudtrail \
aws-cloudwatch aws-ec2 aws-elasticache \
aws-elasticloadbalancing \
aws-rds aws-route53 aws-sdb aws-sqs aws-ssm aws-sts
- name: Dependencies
run: opam install -t . --deps-only
- name: Build
run: opam exec -- dune build
# Running tests requires AWS permissions disabling for now.
# - name: Test
# run: opam exec -- dune runtest
- name: Checkout code
uses: actions/checkout@v2

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Install dependencies
run: |
opam install . --deps-only --with-test --yes
- name: Build
run: |
opam exec -- dune build @all
- name: Tests
run: |
opam exec -- dune build @runtest
- name: Opam lint
run: |
opam lint aws.opam aws-lwt.opam aws-async.opam \
aws-autoscaling.opam aws-cloudformation.opam aws-cloudtrail.opam \
aws-cloudwatch.opam aws-ec2.opam aws-elasticache.opam \
aws-elasticloadbalancing.opam \
aws-rds.opam aws-route53.opam aws-sdb.opam aws-sqs.opam aws-ssm.opam aws-sts.opam
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ lib/**/.merlin
.envrc
**/.merlin
.idea
/_opam

0 comments on commit 876bdb4

Please sign in to comment.