Skip to content

Commit

Permalink
Merge pull request #21 from HewlettPackard/release-patch-versions
Browse files Browse the repository at this point in the history
Patch crate versions for linux/windows builds too
  • Loading branch information
timothyb89 authored Jun 12, 2019
2 parents 453b13a + f7b5e91 commit 23d4c28
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ jobs:
- checkout
- restore_cache:
key: linux-{{ checksum "Cargo.lock" }}
- run:
name: patch crate version
command: |
if [[ -n "$CIRCLE_TAG" ]]; then
version=$(echo "$CIRCLE_TAG" | sed -e 's/^v//')
sed -i -e "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml
cargo update -p woodchipper
fi
- run:
name: Build static linux x86_64
command: cargo build --release --locked
Expand Down Expand Up @@ -44,6 +53,15 @@ jobs:
rustup target add x86_64-pc-windows-gnu
cat "misc/cargo-conf-mingw.toml" >> $CARGO_HOME/config
- run:
name: patch crate version
command: |
if [[ -n "$CIRCLE_TAG" ]]; then
version=$(echo "$CIRCLE_TAG" | sed -e 's/^v//')
sed -i -e "s/version = \"0.1.0\"/version = \"$version\"/" Cargo.toml
cargo update -p woodchipper
fi
- run:
name: Build windows x86_64
command: |
Expand Down

0 comments on commit 23d4c28

Please sign in to comment.