Skip to content

Commit cbd3c39

Browse files
committed
ci: fix native linux packages workflow — remove arm64 beta runner, inline rustup, gh CLI release upload
1 parent bd317c1 commit cbd3c39

1 file changed

Lines changed: 18 additions & 19 deletions

File tree

.github/workflows/turtle-term-native-linux-packages.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ jobs:
2929
deb_arch: amd64
3030
rpm_arch: x86_64
3131
arch_arch: x86_64
32-
- os: ubuntu-24.04-arm
33-
deb_arch: arm64
34-
rpm_arch: aarch64
35-
arch_arch: aarch64
32+
# ubuntu-24.04-arm is beta and unavailable on this plan; omitted for now
3633

3734
steps:
3835
- name: Check out repository
@@ -52,7 +49,10 @@ jobs:
5249
echo "version=$version" >> "$GITHUB_OUTPUT"
5350
5451
- name: Install Rust toolchain
55-
uses: dtolnay/rust-toolchain@stable
52+
run: |
53+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
54+
sh -s -- -y --default-toolchain stable --profile minimal
55+
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
5656
5757
- name: Install Linux build and package dependencies
5858
run: |
@@ -168,17 +168,16 @@ jobs:
168168
169169
- name: Publish native packages to GitHub release
170170
if: startsWith(github.ref, 'refs/tags/turtle-term-v')
171-
uses: softprops/action-gh-release@v2
172-
with:
173-
files: |
174-
dist/native/turtle-term_*.deb
175-
dist/native/turtle-term_*.deb.sha256
176-
dist/native/turtle-term_*.deb.manifest.json
177-
dist/native/rpmbuild/RPMS/**/*.rpm
178-
dist/native/rpmbuild/RPMS/**/*.rpm.sha256
179-
dist/native/rpmbuild/RPMS/**/*.rpm.manifest.json
180-
dist/native/turtle-term-*.pkg.tar.zst
181-
dist/native/turtle-term-*.pkg.tar.zst.sha256
182-
dist/native/turtle-term-*.pkg.tar.zst.manifest.json
183-
dist/native/turtle-term-native-packages.index.json
184-
dist/native/turtle-term-native-packages.index.json.sha256
171+
env:
172+
GH_TOKEN: ${{ github.token }}
173+
run: |
174+
tag="${GITHUB_REF_NAME}"
175+
gh release create "$tag" \
176+
--title "TurtleTerm ${tag}" \
177+
--notes "TurtleTerm ${tag} — native Linux packages." \
178+
2>/dev/null || true
179+
find dist/native -name '*.deb' -o -name '*.deb.sha256' -o -name '*.deb.manifest.json' \
180+
-o -name '*.rpm' -o -name '*.rpm.sha256' -o -name '*.rpm.manifest.json' \
181+
-o -name '*.pkg.tar.zst' -o -name '*.pkg.tar.zst.sha256' -o -name '*.pkg.tar.zst.manifest.json' \
182+
-o -name '*.index.json' -o -name '*.index.json.sha256' \
183+
| xargs gh release upload "$tag" --clobber

0 commit comments

Comments
 (0)