name: CI

on:
  push:
    branches:
      - master
      - v9.0
  pull_request:
    branches:
      - '**'

jobs:
  build:
    runs-on: ubuntu-latest  # container actions require GNU/Linux
    strategy:
      matrix:
        image:
          - 'rocq/rocq-prover:dev'
          - 'rocq/rocq-prover:9.0.0'
      fail-fast: false

    steps:
      - uses: actions/checkout@v2
      - uses: rocq-community/docker-coq-action@v1
        with:
          opam_file: 'rocq-relation-algebra.opam'
          custom_image: ${{ matrix.image }}

# See also:
# https://github.com/rocq-community/docker-coq-action#readme
# https://github.com/erikmd/docker-coq-github-action-demo
