Skip to content

Commit

Permalink
fix artifact package name and always make a binary artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilgardis committed Jun 14, 2022
1 parent ad264d8 commit 759d4f0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/actions/cargo-install-upload-artifacts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ runs:
run: |
metadata="$(cargo metadata --format-version 1 --no-deps)"
package_name="$(jq -r '.packages[0].name' <<< "${metadata}")"
has_binaries="$(jq '.packages[0].targets | any(.kind | contains(["bin"]))' <<< "${metadata}")"
package_name="cross"
echo "::set-output name=package-name::${package_name}"
echo "::set-output name=has-binaries::${has_binaries}"
out_dir="$(mktemp -d)"
artifacts_dir="$(mktemp -d)"
Expand All @@ -31,7 +29,6 @@ runs:
shell: bash

- name: Build with all features
if: ${{ fromJson(steps.metadata.outputs.has-binaries) }}
uses: actions-rs/cargo@v1
with:
command: install
Expand All @@ -45,7 +42,6 @@ runs:
use-cross: true

- name: Archive artifacts
if: ${{ fromJson(steps.metadata.outputs.has-binaries) }}
id: archive
run: |
set -x
Expand Down

0 comments on commit 759d4f0

Please sign in to comment.