Unverified Commit 6a65277e authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #777 from sfackler/osx-circle

Use CircleCI for MacOS builds
parents e221b76e 66b0f13a
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -67,6 +67,29 @@ job: &JOB
      path: /tmp/core_dumps
  - *SAVE_DEPS

macos_job: &MACOS_JOB
  macos:
    xcode: "9.0"
  environment:
    RUSTUP_HOME: /usr/local/rustup
    CARGO_HOME: /usr/local/cargo
  steps:
  - checkout
  - run: sudo mkdir /opt
  - run: sudo chown -R $USER /usr/local /opt
  - run: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.19.0
  - run: sudo ln -s $CARGO_HOME/bin/* /usr/local/bin
  - *RESTORE_REGISTRY
  - run: cargo generate-lockfile
  - *SAVE_REGISTRY
  - run: echo "homebrew-x86_64-apple-darwin" > ~/lib_key
  - *RESTORE_DEPS
  - run: cargo run --manifest-path=systest/Cargo.toml
  - run: |
      PATH=/usr/local/opt/openssl/bin:$PATH
      cargo test --manifest-path=openssl/Cargo.toml --all-features
  - *SAVE_DEPS

openssl_110: &OPENSSL_110
  LIBRARY: openssl
  VERSION: 1.1.0g
@@ -93,6 +116,8 @@ armhf: &ARMHF
  CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_LINKER: arm-linux-gnueabihf-gcc
  CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_AR: arm-linux-gnueabihf-ar
  CARGO_TARGET_ARM_UNKNOWN_LINUX_GNUEABIHF_RUNNER: qemu-arm-static
darwin: &DARWIN
  TARGET: x86_64-apple-darwin

base: &BASE
  RUST_BACKTRACE: 1
@@ -144,6 +169,8 @@ jobs:
    <<: *JOB
    environment:
      <<: [*LIBRESSL_263, *X86_64, *BASE]
  macos:
    <<: *MACOS_JOB
workflows:
  version: 2
  tests:
@@ -159,3 +186,4 @@ workflows:
    - armhf-openssl-1.0.1
    - x86_64-libressl-2.5.0
    - x86_64-libressl-2.6.3
    - macos