Skip to content

Commit

Permalink
(cargo-release) version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yozhgoor committed May 4, 2021
1 parent 0f930c3 commit 66ef77f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Install toolchain
uses: hecrj/setup-rust-action@v1
with:
targets: x86_64-unknown-linux-musl
- name: Build release (Linux)
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target=x86_64-unknown-linux-musl
run: strip /target/release/x86_64-unknown-linux-musl/cargo-temp
- run: strip target/x86_64-unknown-linux-musl/release/cargo-temp
- uses: actions/upload-artifact@v2
with:
name: build-linux
Expand All @@ -35,7 +39,7 @@ jobs:
args: --release --target=x86_64-apple-darwin
- uses: actions/upload-artifact@v2
with:
name: build osx-x86
name: build-osx-x86
path: |
target/x86_64-apple-darwin/release/cargo-temp
Expand All @@ -48,19 +52,19 @@ jobs:
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- uses: actions/download-artifact@v2
with:
name: binary-linux
path: binary-linux
- run: mv build-linux/cargo-temp build-linux/cargo-temp-${{ steps.get_version.outputs.VERSION }}
name: build-linux
path: build-linux
- run: mv build-linux/cargo-temp build-linux/cargo-temp-${{ steps.get_version.outputs.VERSION }}-linux-x86_64
- uses: actions/download-artifact@v2
with:
name: binary-osx
path: binary-osx
- run: mv build-linux/cargo-temp build-linux/cargo-temp-${{ steps.get_version.outputs.VERSION }}
name: build-osx-x86
path: build-osx-x86
- run: mv build-osx-x86/cargo-temp build-osx-x86/cargo-temp-${{ steps.get_version.outputs.VERSION }}-osx-x86_64
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
build-linux/*
build-osx/*
build-osx-x86/*
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-temp"
version = "0.0.0"
version = "0.1.0"
edition = "2018"
license = "MIT OR Apache-2.0"
description = "A CLI tool that allow you to create a temporary new rust project using cargo with already installed dependencies"
Expand Down

0 comments on commit 66ef77f

Please sign in to comment.