summaryrefslogtreecommitdiff
path: root/.github/workflows/macos.yml
blob: 849ef706e3417a7705501f4b6683878e658d5b08 (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
30
31
32
33
34
35
36
37
38
39
name: macOS

on:
  push:
    branches:
    - master
  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
      uses: actions-rs/toolchain@v1
      with:
        profile: minimal
        toolchain: stable
        override: true
    - name: Export OpenSSL environment variables
      env:
        ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
      run: |
        echo "::set-env name=OPENSSL_INCLUDE_DIR::$(brew --prefix openssl)/include"
        echo "::set-env name=OPENSSL_LIB_DIR::$(brew --prefix openssl)/lib"
    - name: Build and test
      run: |
        rustc -V
        cargo -V
        cargo build
        tests/run_integration_tests.sh
        rustdoc --test README.md -L target
        cargo run --manifest-path systest/Cargo.toml