Avoid use of deprecated function Ivar.fill #91
This file contains hidden or 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
| name: Main workflow | |
| on: | |
| - push | |
| - pull_request | |
| - workflow_dispatch | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| ocaml-compiler: | |
| - 5 | |
| - 4 | |
| - 4.08.0 | |
| concurrency: | |
| - async | |
| - lwt | |
| exclude: | |
| - ocaml-compiler: 4.08.0 | |
| concurrency: async | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| AWS_ACCESS_KEY_ID: minioadmin | |
| AWS_SECRET_ACCESS_KEY: minioadmin | |
| services: | |
| minio: | |
| image: fclairamb/minio-github-actions | |
| ports: | |
| - 9000:9000 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Minio | |
| run: | | |
| mkdir ~/.aws | |
| echo '[default]' > ~/.aws/credentials | |
| echo 'aws_access_key_id = minioadmin' >> ~/.aws/credentials | |
| echo 'aws_secret_access_key = minioadmin' >> ~/.aws/credentials | |
| pip3 install minio | |
| python3 - <<'EOF' | |
| from minio import Minio | |
| minio = Minio( | |
| 'localhost:9000', | |
| access_key='minioadmin', | |
| secret_key='minioadmin', | |
| secure=False | |
| ) | |
| minio.make_bucket('bucket-${{ matrix.concurrency }}') | |
| EOF | |
| - name: Use OCaml ${{ matrix.ocaml-compiler }} | |
| uses: ocaml/setup-ocaml@v3 | |
| with: | |
| ocaml-compiler: ${{ matrix.ocaml-compiler }} | |
| opam-pin: false | |
| - run: opam pin . --no-action | |
| - run: opam install aws-s3 aws-s3-${{ matrix.concurrency }} --deps-only --with-doc --with-test | |
| - run: opam exec -- dune build aws-s3 aws-s3-${{ matrix.concurrency }} | |
| - run: opam exec -- dune runtest aws-s3 aws-s3-${{ matrix.concurrency }} | |
| - run: ./integration.sh -t ${{ matrix.concurrency }} -b bucket-${{ matrix.concurrency }} -m 127.0.0.1:9000 |