postgres-parser 0.2.3

An llvm-based safe wrapper for PostgresSQL's query parser. Currently based on v13
name: cargo test --all

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  test:
    name: Test Suite
    runs-on: ${{ matrix.os }}
    if: "!contains(github.event.head_commit.message, 'nogha')"

    strategy:
      matrix:
        os: ["ubuntu-latest", "macos-latest"]

    steps:
      # Ubuntu system dependencies required to build Postgres from sources
      - name: install linux postgres build dependencies
        if: ${{ matrix.os == 'ubuntu-latest' }}
        run: sudo apt install -y clang llvm make curl
#      - name: hack llvm-lto for linux
#        if: ${{ matrix.os == 'ubuntu-latest' }}
#        run: sudo ln -s /usr/bin/llvm-lto-9 /usr/bin/llvm-lto

      # macOS system dependencies required to build Postgres from sources
      - name: install macos postgres build dependencies
        if: ${{ matrix.os == 'macos-latest' }}
        run: brew install wget llvm
      - name: adjust macos PATH
        if: ${{ matrix.os == 'macos-latest' }}
        run: echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH

      - name: Checkout sources
        uses: actions/checkout@v2

      - name: Install stable toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          override: true

      - name: Run cargo test
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --all