Don't rebuild the binary for deb archives

This commit is contained in:
Andrew 2024-04-07 20:20:46 +12:00 committed by andrews05
parent 4302ae2367
commit 375013f60f

View file

@ -96,18 +96,13 @@ jobs:
# against glibc for the target architecture
sudo apt-get -yq install qemu-user gcc-aarch64-linux-gnu libc6:arm64
- name: Install Rust toolchain
if: endsWith(matrix.target, '-linux-gnu')
uses: dtolnay/rust-toolchain@v1
with:
toolchain: nightly
targets: ${{ matrix.target }}
- name: Build deb archives
if: endsWith(matrix.target, '-linux-gnu')
run: |
mkdir -p "target/${{ matrix.target }}/release"
mv target/oxipng "target/${{ matrix.target }}/release"
cargo install --locked cargo-deb
cargo deb --target "${{ matrix.target }}"
cargo deb --target "${{ matrix.target }}" --no-build --no-strip
- name: Create release notes
run: tail -n +2 CHANGELOG.md | sed -e '/^$/,$d' > RELEASE_NOTES.txt