Skip to content

Commit

Permalink
code(ci/rpm): Install package for each os
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeCyp committed Sep 26, 2024
1 parent 47ccc89 commit 263d1e8
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- parsing
strategy:
matrix:
os: [fedora:38, fedora:39, fedora:40, fedora:41, fedora:42, ubi:8, ubi:9, leap:15, tumbleweed]
os: [fedora-38, fedora-39, fedora-40, fedora-41, fedora-42, ubi-8, ubi-9, leap-15, tumbleweed]
env:
name: ${{ needs.parsing.outputs.compname }}
compvers: ${{ needs.parsing.outputs.compvers }}
Expand All @@ -55,13 +55,33 @@ jobs:
steps:

- uses: actions/checkout@v4

- name: Install RPM

- name: Install RPM on Fedora
if: contains(matrix.os, 'fedora')
run: |
sudo dnf install rust cargo -y -v
export PATH=$PATH:$HOME/.cargo/bin/
sudo dnf install rpm-build rpmdevtools -y -v
sudo dnf install cargo-rpm-macros -y -v
- name: Install RPM on RHEL
if: contains(matrix.os, 'ubi')
run: |
sudo yum install rust cargo -y -v
export PATH=$PATH:$HOME/.cargo/bin/
sudo yum install rpm-build rpmdevtools -y -v
sudo yum install cargo-rpm-macros -y -v
- name: Install RPM on openSUSE
if: contains(matrix.os, 'leap') || contains(matrix.os, 'tumbleweed')
run: |
sudo zypper install rust cargo -y -v
export PATH=$PATH:$HOME/.cargo/bin/
sudo zypper install rpm-build rpmdevtools -y -v
sudo zypper install cargo-rpm-macros -y -v
- name: Install cargo lock2rpm and protoc
run: |
cargo install cargo-lock2rpmprovides
PROTOC_ZIP=protoc-28.0-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v28.0/$PROTOC_ZIP
Expand Down

0 comments on commit 263d1e8

Please sign in to comment.