Skip to content

Commit e6af569

Browse files
committed
fix: build target logic
1 parent d37e146 commit e6af569

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build-linux.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@master
2323

24-
- name: Change to ${{ matrix.target}} target
24+
- name: Change to ${{ matrix.target }} target
2525
uses: actions-rs/toolchain@v1
2626
with:
2727
toolchain: stable
28-
target: ${{ matrix.target}}
28+
target: ${{ matrix.target }}
2929
override: true
3030

3131
- name: Build
@@ -43,7 +43,7 @@ jobs:
4343
uses: actions-rs/cargo@v1
4444
with:
4545
command: build
46-
args: --release
46+
args: --release --target ${{ matrix.target }}
4747

4848
- name: Release
4949
if: github.event_name == 'release'
@@ -52,6 +52,6 @@ jobs:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5353
with:
5454
upload_url: ${{ github.event.release.upload_url }}
55-
asset_path: target/release/safe-ascii
56-
asset_name: safe-ascii-${{ matrix.target}}
55+
asset_path: target/${{ matrix.target }}/release/safe-ascii
56+
asset_name: safe-ascii-${{ matrix.target }}
5757
asset_content_type: application/x-pie-executable

0 commit comments

Comments
 (0)