Release 0.1.0
CI / Test (push) Successful in 2m13s
CI / Build Linux (push) Successful in 2m15s
Release / check-release (push) Successful in 10s
Release / build_gnu (push) Successful in 3m24s
Release / build_musl (push) Successful in 3m33s
Release / build_windows (push) Successful in 4m37s
Release / package_gnu (deb) (push) Failing after 2m21s
Release / package_gnu (rpm) (push) Failing after 2m25s
Release / package_musl (deb) (push) Successful in 2m33s
Release / package_musl (rpm) (push) Successful in 2m33s
Release / publish-release (push) Skipped

This commit is contained in:
Elias Wendland
2026-07-15 19:37:44 +02:00
parent 575c729062
commit 3d8c4e0876
+27 -23
View File
@@ -35,7 +35,7 @@ jobs:
targets: x86_64-unknown-linux-gnu
- name: Build
run: cargo build --release --target x86_64-unknown-linux-gnu
- name: Rename Raw Executable
run: cp target/x86_64-unknown-linux-gnu/release/convertis convertis-x86_64-unknown-linux-gnu
@@ -44,7 +44,7 @@ jobs:
with:
name: build-gnu
path: target/x86_64-unknown-linux-gnu/release/convertis
- name: Upload Raw Executable Artifact
uses: actions/upload-artifact@v3
with:
@@ -66,7 +66,7 @@ jobs:
sudo apt-get install -y musl-tools
- name: Build
run: cargo build --release --target x86_64-unknown-linux-musl
- name: Rename Raw Executable
run: cp target/x86_64-unknown-linux-musl/release/convertis convertis-x86_64-unknown-linux-musl
@@ -75,7 +75,7 @@ jobs:
with:
name: build-musl
path: target/x86_64-unknown-linux-musl/release/convertis
- name: Upload Raw Executable Artifact
uses: actions/upload-artifact@v3
with:
@@ -116,7 +116,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-gnu
@@ -137,10 +137,12 @@ jobs:
mkdir -p dist/
if [ "${{ matrix.type }}" = "deb" ]; then
cargo deb --no-build --target x86_64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnu/debian/*.deb dist/
deb_file=$(ls target/x86_64-unknown-linux-gnu/debian/*.deb)
cp "$deb_file" "dist/$(basename "$deb_file" .deb)-gnu.deb"
elif [ "${{ matrix.type }}" = "rpm" ]; then
cargo generate-rpm --target x86_64-unknown-linux-gnu
cp target/x86_64-unknown-linux-gnu/generate-rpm/*.rpm dist/
rpm_file=$(ls target/x86_64-unknown-linux-gnu/generate-rpm/*.rpm)
cp "$rpm_file" "dist/$(basename "$rpm_file" .rpm)-gnu.rpm"
fi
- name: Upload Package Artifact
@@ -158,7 +160,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-unknown-linux-musl
@@ -179,10 +181,12 @@ jobs:
mkdir -p dist/
if [ "${{ matrix.type }}" = "deb" ]; then
cargo deb --no-build --target x86_64-unknown-linux-musl
cp target/x86_64-unknown-linux-musl/debian/*.deb dist/
deb_file=$(ls target/x86_64-unknown-linux-musl/debian/*.deb)
cp "$deb_file" "dist/$(basename "$deb_file" .deb)-musl.deb"
elif [ "${{ matrix.type }}" = "rpm" ]; then
cargo generate-rpm --target x86_64-unknown-linux-musl
cp target/x86_64-unknown-linux-musl/generate-rpm/*.rpm dist/
rpm_file=$(ls target/x86_64-unknown-linux-musl/generate-rpm/*.rpm)
cp "$rpm_file" "dist/$(basename "$rpm_file" .rpm)-musl.rpm"
fi
- name: Upload Package Artifact
@@ -201,37 +205,37 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download All Artifacts
uses: actions/download-artifact@v3
with:
path: all-packages/
merge-multiple: false
- name: Cleanup internal build artifacts
run: |
rm -rf all-packages/build-gnu
rm -rf all-packages/build-musl
- name: Generate Changelog
run: |
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || git rev-list --max-parents=0 HEAD)
git log ${LAST_TAG}..HEAD --pretty=format:"- %s (%an)" > commits.txt
echo "## Changelog" > changelog.md
echo "### Features" >> changelog.md
grep -i "^- feat:" commits.txt >> changelog.md || echo "No new features" >> changelog.md
echo "### Fixes" >> changelog.md
grep -i "^- fix:" commits.txt >> changelog.md || echo "No fixes" >> changelog.md
echo "### Refactoring & Chores" >> changelog.md
grep -i "^- refactor:\|^- chore:\|^- style:" commits.txt >> changelog.md || echo "No refactoring or chores" >> changelog.md
echo "### Others" >> changelog.md
grep -vi "^- feat:\|^- fix:\|^- refactor:\|^- chore:\|^- style:" commits.txt >> changelog.md || echo "No other changes" >> changelog.md
- name: Create Gitea Release
uses: softprops/action-gh-release@v2
with:
@@ -241,13 +245,13 @@ jobs:
files: all-packages/**/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Packages to Gitea Registry
run: |
GITEA_URL="${{ github.server_url }}"
GITEA_OWNER="${{ github.repository_owner }}"
TOKEN="${{ secrets.GITHUB_TOKEN }}"
TOKEN="${{ secrets.PACKAGE_PAT }}"
echo "Publishing RPM packages..."
find all-packages/ -type f -name "*.rpm" | while read -r rpm_file; do
echo "Uploading $rpm_file..."
@@ -256,7 +260,7 @@ jobs:
--upload-file "$rpm_file" \
"$GITEA_URL/api/packages/$GITEA_OWNER/rpm/upload"
done
echo "Publishing DEB packages..."
find all-packages/ -type f -name "*.deb" | while read -r deb_file; do
echo "Uploading $deb_file..."