name: CI # Controls when the action will run. on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: jobs: build: strategy: fail-fast: false matrix: os: - ubuntu-latest - windows-latest ocaml-compiler: - 4.12.x runs-on: ${{ matrix.os }} steps: - name: Checkout code uses: actions/checkout@v2 - name: Use OCaml ${{ matrix.ocaml-compiler }} uses: ocaml/setup-ocaml@v2 with: ocaml-compiler: ${{ matrix.ocaml-compiler }} - run: opam install . --deps-only - run: opam exec -- dune build - name: Upload artifact uses: actions/upload-artifact@v2.2.3 with: name: | if [ "$RUNNER_OS" == "Windows" ]; then echo "nbr-win" else echo "nbr-lin" fi path: | if [ "$RUNNER_OS" == "Windows" ]; then echo "_build/install/default/bin/nbr.exe" else echo "_build/install/default/bin/nbr" fi retention-days: 1