Skip to content

Commit

Permalink
Use opensuse/leap to build OpenSUSE package.
Browse files Browse the repository at this point in the history
Always use rustup to install the Rust compiler.
  • Loading branch information
ayosec committed Oct 29, 2021
1 parent 34e14f3 commit 8d33d9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- debian
- ubuntu
- fedora
- opensuse/tumbleweed
- opensuse/leap
steps:
- uses: actions/checkout@v2

Expand Down
11 changes: 6 additions & 5 deletions pkg/build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,19 @@ then
debhelper \
git

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal -y
source ~/.cargo/env

elif command -v yum
then
yum install -y \
cargo \
gcc \
gettext \
git \
rpm-build

elif command -v zypper
then
zypper install -y \
cargo \
curl \
gcc \
gettext-runtime \
git \
rpm-build
Expand All @@ -42,6 +40,9 @@ else
exit 1
fi

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal -y
source ~/.cargo/env

# Test the builtin in this system.
cargo test

Expand Down

0 comments on commit 8d33d9a

Please sign in to comment.