name: CI

on: [push]

jobs:
  posix-build-on-ubuntu:
    runs-on: ubuntu-latest
    defaults:
      run:
        shell: bash
        working-directory: posix
    steps:
      - uses: actions/checkout@v2
      - uses: actions/cache@v2
        with:
          path: src
          key: ${{runner.os}}-src
      - run: sudo apt-get install libgtk-3-dev libsqlite3-dev libxml2-dev unzip uuid-dev zlib1g-dev
      - run: make -s download
      - run: make -s external
      - run: make -s all
      - run: make check
  xcode-build-on-macos:
    runs-on: macos-latest
    defaults:
      run:
        shell: bash
        working-directory: xcode
    env:
      LIBTOOL: glibtool
      LIBTOOLIZE: glibtoolize
    steps:
      - uses: actions/checkout@v2
      - uses: actions/cache@v2
        with:
          path: src
          key: ${{runner.os}}-src
      - run: brew install autoconf automake libtool pkg-config
      - run: cp config.mk.github config.mk
      - run: make -s download
      - run: make -s external
      - run: make -s all
      - run: make check
      - uses: actions/upload-artifact@v2
        with:
          name: installer-image
          path: Flint-*.dmg

name: CI

on: [push]

jobs:
  posix-build-on-ubuntu:
    runs-on: ubuntu-latest
    defaults:
      run:
        shell: bash
        working-directory: posix
    steps:
      - uses: actions/checkout@v2
      - run: sudo apt-get install libgtk-3-dev libsqlite3-dev libxml2-dev unzip uuid-dev zlib1g-dev
      - run: make -s download
      - run: make -s external
      - run: make -s all
      - run: make check
  xcode-build-on-macos:
    runs-on: macos-latest
    defaults:
      run:
        shell: bash
        working-directory: xcode
    env:
      LIBTOOL: glibtool
      LIBTOOLIZE: glibtoolize
    steps:
      - uses: actions/checkout@v2
      - uses: actions/cache@v2
        with:
          path: |
            xcode/src
            xcode/tmp
            xcode/usr
          key: ${{runner.os}}-xcode
      - run: brew install autoconf automake libtool pkg-config
      - run: cp config.mk.github config.mk
      - run: make -s download
      - run: make -s external
      - run: make -s all
      - run: make check
      - uses: actions/upload-artifact@v2
        with:
          name: macos-installer-image
          path: xcode/Flint-*.dmg

Fix paths of cache and artifacts
Fix paths of cache and artifacts
