Skip to content

Commit

Permalink
feature(action_rpm): try to add centos9 rpm build
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeCyp committed Nov 15, 2024
1 parent 8343ec8 commit a644d61
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["fedora:40", "fedora:41", "fedora:42"]
os: ["fedora:40", "fedora:41", "fedora:42", "centos:stream9"]
env:
name: ${{ needs.parsing.outputs.compname }}
compvers: ${{ needs.parsing.outputs.compvers }}
Expand All @@ -80,14 +80,21 @@ jobs:
sudo dnf install rpm-build rpmdevtools -y
sudo dnf install cargo-rpm-macros -y
sudo dnf install openssl-devel -y
- name: Install RPM on RHEL
if: contains(matrix.os, 'ubi')
run: |
yum install rust cargo -y
export PATH=$PATH:$HOME/.cargo/bin/
yum install rpm-build rpmdevtools -y
- 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
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc || unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*' || unzip -o $PROTOC_ZIP -d /usr/local 'include/*'
rm -f $PROTOC_ZIP
- name: Setup for alumet
Expand Down

0 comments on commit a644d61

Please sign in to comment.