diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a00b66c..c481a22 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,7 +72,7 @@ jobs: profile: minimal - name: Build Release - run: cargo build --release --locked --verbose + run: cargo build --release --locked --verbose --target ${{ matrix.target }} env: # Build into a known directory so we can find our build artifact more # easily. @@ -88,11 +88,11 @@ jobs: mkdir staging if [ "${{ matrix.host }}" = "windows" ]; then - cp "output/release/$BIN.exe" staging/ + cp "output/${{ matrix.target }}/release/$BIN.exe" staging/ cd staging 7z a ../release.zip * else - cp "output/release/$BIN" staging/ + cp "output/${{ matrix.target }}/release/$BIN" staging/ cd staging zip ../release.zip * fi