summaryrefslogtreecommitdiff
path: root/.github/workflows/macos.yml
blob: 6055b2909798b7464a8ec4a05decceaa1e8c27ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: macOS

on:
  pull_request:
    branches:
    - master

jobs:
  build:
    strategy:
      fail-fast: false
      matrix:
        os: [macos-10.14]
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v1
    - name: Install Rust
      run: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
    - name: Build and test
      run: |
        export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
        export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib
        source $HOME/.cargo/env
        rustc -V
        cargo -V
        cargo build
        tests/run_integration_tests.sh
        rustdoc --test README.md -L target
        cargo run --manifest-path systest/Cargo.toml