Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion contrib/test/ci/build/crun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,38 @@
yajl-devel \
libseccomp-devel \
libselinux-devel \
go-md2man \
glibc-static \
python3-libmount \
libtool \
pkgconf-pkg-config \
gperf \
libtool

- name: Install go-md2man for RHEL9
block:
- name: clone go-md2man source repo
git:
repo: "https://github.com/cpuguy83/go-md2man.git"
dest: "{{ ansible_env.GOPATH }}/src/github.com/cpuguy83/go-md2man"
version: v2.0.2

- name: build go-md2man
make:
chdir: "{{ ansible_env.GOPATH }}/src/github.com/cpuguy83/go-md2man"
target: "build"

- name: copy go-md2man
copy:
src: "{{ ansible_env.GOPATH }}/src/github.com/cpuguy83/go-md2man/bin/go-md2man"
dest: "{{ ansible_env.GOPATH }}/bin/go-md2man"
mode: "preserve"
when: (ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 9)

- name: Install go-md2man for RHEL8/Fedora/CentOS
raw: >
yum install -y go-md2man
when: (ansible_distribution in ['RedHat', 'CentOS', 'Fedora'] and ansible_distribution_major_version|int != 9)

- name: Run autogen.sh
command: "{{ ansible_env.GOPATH }}/src/github.com/containers/crun/autogen.sh"
args:
Expand Down
5 changes: 4 additions & 1 deletion contrib/test/ci/system-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,7 @@

- name: Update all packages RHEL 8, CentOS 8 and Fedora >= 30
shell: sudo yum update -y
when: supports_python3 is defined and supports_python3
when:
- supports_python3 is defined
- supports_python3
- (ansible_distribution in ['RedHat', 'CentOS', 'Fedora'] and ansible_distribution_major_version|int != 9)