mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
build macos on branches
This commit is contained in:
parent
6b1be83939
commit
fa63a52ebd
@ -22,6 +22,39 @@ jobs:
|
|||||||
- target/debug/deps
|
- target/debug/deps
|
||||||
key: v4-test-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }}
|
key: v4-test-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }}
|
||||||
|
|
||||||
|
test-macos:
|
||||||
|
macos:
|
||||||
|
xcode: "9.0"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- v4-cargo-cache-darwin-{{ arch }}-{{ checksum "Cargo.lock" }}
|
||||||
|
- run:
|
||||||
|
name: Install CMAKE
|
||||||
|
command: |
|
||||||
|
curl -O https://cmake.org/files/v3.4/cmake-3.4.1-Darwin-x86_64.tar.gz
|
||||||
|
tar xf cmake-3.4.1-Darwin-x86_64.tar.gz
|
||||||
|
export PATH="`pwd`/cmake-3.4.1-Darwin-x86_64/CMake.app/Contents/bin:$PATH"
|
||||||
|
- run:
|
||||||
|
name: Install Rust
|
||||||
|
command: |
|
||||||
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
cargo --version
|
||||||
|
rustup component add rustfmt
|
||||||
|
- run:
|
||||||
|
name: Execute tests
|
||||||
|
command: |
|
||||||
|
export PATH="`pwd`/cmake-3.4.1-Darwin-x86_64/CMake.app/Contents/bin:$PATH"
|
||||||
|
export PATH="$HOME/.cargo/bin:$PATH"
|
||||||
|
# We increase the ulimit for fixing cargo unclosed files in mac
|
||||||
|
ulimit -n 8000
|
||||||
|
sudo sysctl -w kern.maxfiles=655360 kern.maxfilesperproc=327680
|
||||||
|
make test
|
||||||
|
make lint
|
||||||
|
|
||||||
test-and-build:
|
test-and-build:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/rust:latest
|
- image: circleci/rust:latest
|
||||||
@ -175,6 +208,10 @@ workflows:
|
|||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore: master
|
ignore: master
|
||||||
|
- test-macos:
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
ignore: master
|
||||||
- test-and-build:
|
- test-and-build:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
|
Loading…
Reference in New Issue
Block a user