File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
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 : |
You can’t perform that action at this time.
0 commit comments