File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,13 @@ jobs:
39
39
run : |
40
40
if [[ "${{ matrix.cross-target }}" ]]; then
41
41
echo "::set-output name=build-target::${{ matrix.cross-target }}"
42
+ echo "::set-output name=target-option::--target=${{ matrix.cross-target }}"
42
43
elif [[ ${{ matrix.os }} == "macos-latest" ]]; then
43
44
echo "::set-output name=build-target::x86_64-apple-darwin"
45
+ echo "::set-output name=target-option::"
44
46
elif [[ ${{ matrix.os }} == "ubuntu-latest" ]]; then
45
47
echo "::set-output name=build-target::x86_64-unknown-linux-gnu"
48
+ echo "::set-output name=target-option::"
46
49
else
47
50
echo "Unknown OS: ${{ matrix.os }}"
48
51
exit 1
71
74
72
75
- name : build (${{ steps.set-outputs.outputs.build-type }}; ${{ matrix.cross-target }})
73
76
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 }}
75
78
76
79
- name : create artifact
77
80
run : |
You can’t perform that action at this time.
0 commit comments