Trying to add macos releases

This commit is contained in:
Syrus Akbary 2018-11-13 11:36:04 -08:00
parent 47231c241a
commit 50b860f717
2 changed files with 46 additions and 6 deletions

View File

@ -8,7 +8,7 @@ jobs:
- checkout
- restore_cache:
keys:
- v4-cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
- v4-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }}
- run: sudo apt-get install -y cmake
- run: rustup default nightly-2018-10-07
- run: make test
@ -29,14 +29,51 @@ jobs:
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
- target/release/.fingerprint
- target/release/build
- target/release/deps
key: v4-cargo-cache-{{ arch }}-{{ checksum "Cargo.lock" }}
key: v4-cargo-cache-linux-{{ arch }}-{{ checksum "Cargo.lock" }}
# create-release-artifacts-mac:
# macos:
# xcode: "9.0"
# - checkout
build-macos:
macos:
xcode: "9.0"
steps:
- checkout
- restore_cache:
keys:
- v4-cargo-cache-darwin-{{ arch }}-{{ checksum "Cargo.lock" }}
- run:
name: Install CMAKE
command: |
wget 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 Nightly
command: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2018-10-07
- run: make test
- run:
command: |
make release
mkdir -p artifacts
VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
echo "${VERSION}" >> artifacts/version
cp ./target/release/wasmer ./artifacts/$(./binary-name.sh)
- persist_to_workspace:
root: .
paths:
- artifacts
- save_cache:
paths:
- /usr/local/cargo/registry
- target/debug/.fingerprint
- target/debug/build
- target/debug/deps
- target/release/.fingerprint
- target/release/build
- target/release/deps
key: v4-cargo-cache-darwin-{{ arch }}-{{ checksum "Cargo.lock" }}
publish-github-release:
docker:
@ -60,6 +97,7 @@ workflows:
main:
jobs:
- build
- build-macos
# :
# filters:
# tags:
@ -68,6 +106,7 @@ workflows:
- publish-github-release:
requires:
- build
- build-macos
# filters:
# branches:
# ignore: /.*/

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/target
**/*.rs.bk
/artifacts