Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #507 - improve gh actions #524

Merged
merged 56 commits into from Jan 29, 2022
Merged

Issue #507 - improve gh actions #524

merged 56 commits into from Jan 29, 2022

Conversation

organom
Copy link
Member

@organom organom commented Jan 9, 2022

Fixes issue #507

  • Simplify build github action logic
  • Add centos 8, centos 7, fedora 34, fedora 35 and amazonlinux 2 builds
  • Add readme table with current tested systems/compilers
  • Bump macOS version from 10.14 to 10.15

…er is too old. Try to enforce compiler version for centos:7
@organom organom requested a review from ilyash January 9, 2022 17:35
@organom organom changed the title 507 - improve gh actions Issue #507 - improve gh actions Jan 9, 2022
Copy link
Contributor

@ilyash-b ilyash-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whatever possible should be pushed into install.sh

Comment on lines 98 to 105
- name: Install AmazonLinux Deps
if: startsWith(matrix.container, 'amazonlinux')
run: yum -y install tar xz gzip
- name: Install CentOS Deps
if: startsWith(matrix.container, 'centos:8')
run: |
yum -y install epel-release dnf-plugins-core
yum config-manager --set-enabled powertools
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This must be in install.sh. How people would otherwise be able to compile on these platforms?

Copy link
Member Author

@organom organom Jan 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is specific to centos 8 in order to allow the sources to install the compiler. Since installing the compiler is also not part of install.sh, this should also not be there.

Comment on lines 126 to 133
- name: Install AmazonLinux Deps
if: startsWith(matrix.container, 'amazonlinux')
run: yum -y install tar xz gzip
- name: Install CentOS Deps
if: startsWith(matrix.container, 'centos:8')
run: |
yum -y install epel-release dnf-plugins-core
yum config-manager --set-enabled powertools
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplication, see above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

install.sh Outdated Show resolved Hide resolved
install.sh Outdated
Comment on lines 30 to 31
if ! command -v ctest &>/dev/null;then
if command -v ctest3 &>/dev/null;then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please merge into one if if possible

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not possible, because the else case needs to happen only if inside the first if

readme.md Show resolved Hide resolved
@organom organom mentioned this pull request Jan 14, 2022
@organom
Copy link
Member Author

organom commented Jan 16, 2022

Requires changes after #503 is approved, only merge/review afterwards

@organom organom requested a review from ilyash-b January 16, 2022 17:29
@organom
Copy link
Member Author

organom commented Jan 16, 2022

@ilyash-b code was adapted from the changes done on the man PR. Some of the requested changes done, others answered above.

container: [ "fedora:34", "fedora:35", "amazonlinux:2", "centos:8" ]
steps:
- name: Install AmazonLinux Deps
if: startsWith(matrix.container, 'amazonlinux')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice expression!

@ilyash-b ilyash-b merged commit aadedde into dev Jan 29, 2022
@ilyash-b ilyash-b deleted the 507-improve-gh-actions branch January 29, 2022 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants