summaryrefslogtreecommitdiff
path: root/.github/workflows/macos.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r--.github/workflows/macos.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml
new file mode 100644
index 0000000..6055b29
--- /dev/null
+++ b/.github/workflows/macos.yml
@@ -0,0 +1,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