Skip to content

Commit 34f6069

Browse files
committed
ci: use just to build tarball
1 parent a38ebd2 commit 34f6069

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/ci-linux-rust.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
cargo build --release --verbose
4848
just
4949
mkdir -p dist
50-
cp target/release/librepods-rust dist/librepods
50+
cp target/release/librepods dist/librepods
5151
mv dist/LibrePods-x86_64.AppImage dist/librepods-x86_64.AppImage
5252
5353
- name: Upload AppImage artifact
@@ -64,27 +64,14 @@ jobs:
6464
name: librepods
6565
path: linux-rust/dist/librepods
6666

67-
- name: Vendor and create tarball
67+
- name: Create tarball for Flatpak
6868
if: startsWith(github.ref, 'refs/tags/linux-v')
6969
working-directory: linux-rust
7070
run: |
71-
cargo vendor vendor
72-
mkdir -p dist .cargo
73-
cat > .cargo/config.toml <<'EOF'
74-
[source.crates-io]
75-
replace-with = "vendored-sources"
76-
[source.vendored-sources]
77-
directory = "vendor"
78-
EOF
79-
8071
VERSION="${GITHUB_REF_NAME#linux-v}"
81-
TAR="librepods-v${VERSION}-source.tar.gz"
82-
tar -czf "dist/${TAR}" \
83-
--transform "s,^,librepods-v${VERSION}/," \
84-
Cargo.toml Cargo.lock src vendor .cargo assets flatpak
85-
72+
just tarball "${VERSION}"
8673
echo "VERSION=${VERSION}" >> $GITHUB_ENV
87-
echo "TAR_PATH=linux-rust/dist/${TAR}" >> $GITHUB_ENV
74+
echo "TAR_PATH=linux-rust/dist/librepods-v${VERSION}-source.tar.gz" >> $GITHUB_ENV
8875
8976
- name: Create GitHub Release (AppImage + binary + source)
9077
if: startsWith(github.ref, 'refs/tags/linux-v')

0 commit comments

Comments
 (0)