Skip to content

Commit 8410995

Browse files
committed
ci(fix): --target option
1 parent 7abd594 commit 8410995

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,13 @@ jobs:
3939
run: |
4040
if [[ "${{ matrix.cross-target }}" ]]; then
4141
echo "::set-output name=build-target::${{ matrix.cross-target }}"
42+
echo "::set-output name=target-option::--target=${{ matrix.cross-target }}"
4243
elif [[ ${{ matrix.os }} == "macos-latest" ]]; then
4344
echo "::set-output name=build-target::x86_64-apple-darwin"
45+
echo "::set-output name=target-option::"
4446
elif [[ ${{ matrix.os }} == "ubuntu-latest" ]]; then
4547
echo "::set-output name=build-target::x86_64-unknown-linux-gnu"
48+
echo "::set-output name=target-option::"
4649
else
4750
echo "Unknown OS: ${{ matrix.os }}"
4851
exit 1
@@ -71,7 +74,7 @@ jobs:
7174
7275
- name: build (${{ steps.set-outputs.outputs.build-type }}; ${{ matrix.cross-target }})
7376
run: |
74-
cargo build ${{ steps.set-outputs.outputs.release-build-option }} --target=${{ matrix.cross-target }}
77+
cargo build ${{ steps.set-outputs.outputs.release-build-option }} ${{ steps.set-outputs.outputs.target-option }}
7578
7679
- name: create artifact
7780
run: |

0 commit comments

Comments
 (0)