File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1212
1313env :
1414 APP_NAME : ghosttype
15+ RUST_DIR : .
1516 RELEASE_TAG : ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || inputs.tag }}
1617
1718jobs :
@@ -59,12 +60,13 @@ jobs:
5960 run : echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
6061
6162 - name : Build ${{ matrix.target }}
62- working-directory : rust
63+ working-directory : ${{ env.RUST_DIR }}
6364 run : cargo build --release --locked --target ${{ matrix.target }}
6465
6566 - name : Package
67+ working-directory : ${{ env.RUST_DIR }}
6668 run : |
67- BIN_PATH=rust/ target/${{ matrix.target }}/release/${{ env.APP_NAME }}
69+ BIN_PATH=target/${{ matrix.target }}/release/${{ env.APP_NAME }}
6870 mkdir -p dist
6971 cp "$BIN_PATH" dist/${{ env.APP_NAME }}
7072 tar -C dist -czf dist/${{ env.APP_NAME }}_${{ env.RELEASE_TAG }}_${{ matrix.archive_os }}_${{ matrix.archive_arch }}.tar.gz ${{ env.APP_NAME }}
7375 uses : actions/upload-artifact@v4
7476 with :
7577 name : ${{ matrix.archive_os }}-${{ matrix.archive_arch }}
76- path : dist/*.tar.gz
78+ path : ${{ env.RUST_DIR }}/ dist/*.tar.gz
7779
7880 release :
7981 needs : build
You can’t perform that action at this time.
0 commit comments