Skip to content

Commit 27c5532

Browse files
committed
ci: add Rocky linux build for testing on RHEL environment
1 parent 869a5cc commit 27c5532

File tree

1 file changed

+35
-16
lines changed

1 file changed

+35
-16
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: ruby/setup-ruby@v1
2828
with:
2929
ruby-version: ${{ matrix.ruby }}
30-
- name: Build and test with Rake
30+
- name: Build and test
3131
run: bash rumale-test.sh
3232

3333
build-win:
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
$value = ruby -e 'puts RUBY_VERSION'
5353
echo "RUBY_VER=$value" >> $env:GITHUB_ENV
54-
- name: Build and test with Rake
54+
- name: Build and test
5555
run: |
5656
bundle config set --global build.numo-linalg-alt "--with-opt-lib=C:\hostedtoolcache\windows\Ruby\${{ env.RUBY_VER }}\x64\msys64\ucrt64\lib --with-opt-include=C:\hostedtoolcache\windows\Ruby\${{ env.RUBY_VER }}\x64\msys64\ucrt64\include\openblas"
5757
bash rumale-test.sh
@@ -60,17 +60,36 @@ jobs:
6060
runs-on: macos-latest
6161
name: Ruby 3.4 (macOS)
6262
steps:
63-
- uses: actions/checkout@v6
64-
- name: Install OpenBLAS
65-
run: |
66-
brew update
67-
brew install openblas
68-
brew info openblas
69-
- name: Set up Ruby
70-
uses: ruby/setup-ruby@v1
71-
with:
72-
ruby-version: 3.4
73-
- name: Build and test with Rake
74-
run: |
75-
bundle config --global build.numo-linalg-alt "--with-opt-dir=/opt/homebrew/opt/openblas"
76-
bash rumale-test.sh
63+
- uses: actions/checkout@v6
64+
- name: Install OpenBLAS
65+
run: |
66+
brew update
67+
brew install openblas
68+
brew info openblas
69+
- name: Set up Ruby
70+
uses: ruby/setup-ruby@v1
71+
with:
72+
ruby-version: 3.4
73+
- name: Build and test
74+
run: |
75+
bundle config --global build.numo-linalg-alt "--with-opt-dir=/opt/homebrew/opt/openblas"
76+
bash rumale-test.sh
77+
78+
build-rhel:
79+
runs-on: ubuntu-latest
80+
name: Ruby 3.3 (Rocky)
81+
container: rockylinux/rockylinux:9
82+
steps:
83+
- uses: actions/checkout@v6
84+
- name: Set up Ruby
85+
run: |
86+
dnf update -y
87+
dnf install -y dnf-plugins-core
88+
dnf config-manager --set-enabled crb
89+
dnf module -y enable ruby:3.3
90+
dnf install -y gcc make git libyaml-devel ruby-devel ruby openblas-devel
91+
bundle config silence_root_warning true
92+
- name: Build and test
93+
run: |
94+
bundle config --global build.numo-linalg-alt "--with-opt-include=/usr/include/openblas"
95+
bash rumale-test.sh

0 commit comments

Comments
 (0)