Skip to content

Commit 8d33d9a

Browse files
committed
Use opensuse/leap to build OpenSUSE package.
Always use rustup to install the Rust compiler.
1 parent 34e14f3 commit 8d33d9a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- debian
3333
- ubuntu
3434
- fedora
35-
- opensuse/tumbleweed
35+
- opensuse/leap
3636
steps:
3737
- uses: actions/checkout@v2
3838

pkg/build-release.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,19 @@ then
1818
debhelper \
1919
git
2020

21-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal -y
22-
source ~/.cargo/env
23-
2421
elif command -v yum
2522
then
2623
yum install -y \
27-
cargo \
24+
gcc \
2825
gettext \
2926
git \
3027
rpm-build
3128

3229
elif command -v zypper
3330
then
3431
zypper install -y \
35-
cargo \
32+
curl \
33+
gcc \
3634
gettext-runtime \
3735
git \
3836
rpm-build
@@ -42,6 +40,9 @@ else
4240
exit 1
4341
fi
4442

43+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal -y
44+
source ~/.cargo/env
45+
4546
# Test the builtin in this system.
4647
cargo test
4748

0 commit comments

Comments
 (0)