diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9202a7..00cb8d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 @@ -48,14 +52,14 @@ 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: @@ -63,4 +67,4 @@ jobs: with: files: | build-linux/* - build-osx/* + build-osx-x86/* diff --git a/Cargo.lock b/Cargo.lock index ee7d4a8..57b0509 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -62,7 +62,7 @@ dependencies = [ [[package]] name = "cargo-temp" -version = "0.0.0" +version = "0.1.0" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 9483c61..23880a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"