From 49f775a96f23b146aa262685ac3934fc203d5017 Mon Sep 17 00:00:00 2001 From: Elias Wendland <193786789+eliaswen@users.noreply.github.com> Date: Wed, 15 Jul 2026 18:07:30 +0200 Subject: [PATCH] Release 0.1.0 --- .github/workflows/release.yml | 39 ++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c353d5..073980e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -97,11 +97,14 @@ jobs: - name: Build run: cargo build --release --target x86_64-pc-windows-gnu + - name: Rename Raw Executable + run: cp target/x86_64-pc-windows-gnu/release/convertis.exe convertis-x86_64-pc-windows-gnu.exe + - name: Upload Raw Executable Artifact uses: actions/upload-artifact@v3 with: name: raw-windows - path: target/x86_64-pc-windows-gnu/release/convertis.exe + path: convertis-x86_64-pc-windows-gnu.exe package_gnu: needs: [check-release, build_gnu] @@ -114,6 +117,13 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + targets: x86_64-unknown-linux-gnu + + - name: Install build dependencies + uses: taiki-e/install-action@v2 + with: + tool: cargo-deb,cargo-generate-rpm - name: Download compiled binary uses: actions/download-artifact@v3 @@ -122,14 +132,6 @@ jobs: path: target/x86_64-unknown-linux-gnu/release/ merge-multiple: false - - name: Install build dependencies - run: | - if [ "${{ matrix.type }}" = "deb" ]; then - cargo install cargo-deb - elif [ "${{ matrix.type }}" = "rpm" ]; then - cargo install cargo-generate-rpm - fi - - name: Build package run: | mkdir -p dist/ @@ -137,7 +139,7 @@ jobs: cargo deb --no-build --target x86_64-unknown-linux-gnu cp target/x86_64-unknown-linux-gnu/debian/*.deb dist/ elif [ "${{ matrix.type }}" = "rpm" ]; then - cargo generate-rpm --target-dir target/x86_64-unknown-linux-gnu + cargo generate-rpm --target x86_64-unknown-linux-gnu cp target/x86_64-unknown-linux-gnu/generate-rpm/*.rpm dist/ fi @@ -158,6 +160,13 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + with: + targets: x86_64-unknown-linux-musl + + - name: Install build dependencies + uses: taiki-e/install-action@v2 + with: + tool: cargo-deb,cargo-generate-rpm - name: Download compiled binary uses: actions/download-artifact@v3 @@ -166,14 +175,6 @@ jobs: path: target/x86_64-unknown-linux-musl/release/ merge-multiple: false - - name: Install build dependencies - run: | - if [ "${{ matrix.type }}" = "deb" ]; then - cargo install cargo-deb - elif [ "${{ matrix.type }}" = "rpm" ]; then - cargo install cargo-generate-rpm - fi - - name: Build package run: | mkdir -p dist/ @@ -181,7 +182,7 @@ jobs: cargo deb --no-build --target x86_64-unknown-linux-musl cp target/x86_64-unknown-linux-musl/debian/*.deb dist/ elif [ "${{ matrix.type }}" = "rpm" ]; then - cargo generate-rpm --target-dir target/x86_64-unknown-linux-musl + cargo generate-rpm --target x86_64-unknown-linux-musl cp target/x86_64-unknown-linux-musl/generate-rpm/*.rpm dist/ fi