name: vs-ponyc-latest

on:
  schedule:
    - cron: "0 3 * * *"

jobs:
  vs-ponyc-master:
    name: Verify master against ponyc master
    runs-on: ubuntu-latest
    container:
      image: ponylang/shared-docker-ci-x86-64-unknown-linux-builder-with-ssl:latest
    steps:
      - uses: actions/checkout@v1
      - name: Test with a recent ponyc from master
        run: make test

name: vs-ponyc-latest

on:
  schedule:
    - cron: "0 3 * * *"

jobs:
  vs-ponyc-master-linux:
    name: Verify master against ponyc master on Linux
    runs-on: ubuntu-latest
    container:
      image: ponylang/shared-docker-ci-x86-64-unknown-linux-builder-with-ssl:latest
    steps:
      - uses: actions/checkout@v1
      - name: Test with a recent ponyc from master
        run: make test

  vs-ponyc-master-macos:
    name: Verify master against ponyc master on macOS
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v1
      - name: brew install libressl
        run: brew install libressl
      - name: install ponyup
        run: curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ponylang/ponyup/latest-release/ponyup-init.sh | sh
      - name: install ponyc and pony-stable
        run: |
          export PATH=$HOME/.local/share/ponyup/bin:$PATH
          ponyup update ponyc nightly
          ponyup update stable nightly
      - name: Test with the most recent ponyc release
        run: |
          export PATH=$HOME/.local/share/ponyup/bin:$PATH
          make test

Add nightly macOS breakage tests
Add nightly macOS breakage tests

We PR against macOS as well as Linux so it makes sense to run
the nightly breakage test against on both Linux and macOS as well.

Note, because macOS ponyc nightly is currently broken, this will
start failing once it's merged. Once ponyc nightly is fixed, this
should start passing.
