-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: also build and test with the Intel compiler
Signed-off-by: Adrian Reber <[email protected]>
- Loading branch information
1 parent
ee436b5
commit e408542
Showing
5 changed files
with
53 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,23 +66,31 @@ jobs: | |
build_on_rhel: | ||
strategy: | ||
matrix: | ||
compiler: [gnu12, gnu13] | ||
compiler: [gnu12, gnu13, intel] | ||
runs-on: ubuntu-latest | ||
name: Build on RHEL (${{ matrix.compiler}}) | ||
container: | ||
image: docker.io/library/rockylinux:9 | ||
volumes: | ||
- /usr:/host/usr | ||
- /opt:/host/opt | ||
steps: | ||
- name: Delete unneeded tools on the host | ||
run: | | ||
df -h | ||
rm -rf /host/usr/share/dotnet /host/usr/local/lib/android /host/opt/ghc | ||
df -h | ||
- name: Install git | ||
run: dnf -y install git | ||
- uses: actions/checkout@v3 | ||
- name: Setup | ||
run: tests/ci/prepare-ci-environment.sh | ||
run: tests/ci/prepare-ci-environment.sh ${{ matrix.compiler }} | ||
- id: files | ||
uses: Ana06/[email protected] | ||
- name: Validate Build | ||
run: | | ||
. /etc/profile.d/lmod.sh | ||
tests/ci/run_build.py ohpc ${{ steps.files.outputs.added_modified }} --compiler-family ${{ matrix.compiler}} | ||
tests/ci/run_build.py ohpc ${{ steps.files.outputs.added_modified }} --compiler-family ${{ matrix.compiler }} | ||
touch /tmp/empty | ||
- uses: actions/upload-artifact@v3 | ||
if: matrix.compiler == 'gnu12' | ||
|
@@ -95,6 +103,9 @@ jobs: | |
/tmp/empty | ||
test_on_rhel: | ||
strategy: | ||
matrix: | ||
compiler: [gnu12, intel] | ||
runs-on: ubuntu-latest | ||
name: Test on RHEL | ||
env: | ||
|
@@ -103,13 +114,21 @@ jobs: | |
container: | ||
image: docker.io/library/rockylinux:9 | ||
options: --privileged | ||
volumes: | ||
- /usr:/host/usr | ||
- /opt:/host/opt | ||
needs: build_on_rhel | ||
steps: | ||
- name: Delete unneeded tools on the host | ||
run: | | ||
df -h | ||
rm -rf /host/usr/share/dotnet /host/usr/local/lib/android /host/opt/ghc | ||
df -h | ||
- name: Install git | ||
run: dnf -y install git | ||
- uses: actions/checkout@v3 | ||
- name: Setup | ||
run: tests/ci/prepare-ci-environment.sh | ||
run: tests/ci/prepare-ci-environment.sh ${{ matrix.compiler }} | ||
- id: files | ||
uses: Ana06/[email protected] | ||
- uses: actions/download-artifact@v3 | ||
|
@@ -121,14 +140,14 @@ jobs: | |
export SKIP_CI_SPECS="${{ env.SKIP_CI_SPECS }}${{ env.JOB_SKIP_CI_SPECS }}" | ||
. /etc/profile.d/lmod.sh | ||
chown ohpc -R tests | ||
tests/ci/setup_slurm_and_run_tests.sh ohpc ${{ steps.files.outputs.added_modified }} | ||
tests/ci/setup_slurm_and_run_tests.sh ohpc ${{ matrix.compiler }} ${{ steps.files.outputs.added_modified }} | ||
- name: Upload Test Results | ||
# To display test results from forked repositories they need to | ||
# be uploaded and then analyzed. | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results | ||
name: test-results-${{ matrix.compiler }} | ||
retention-days: 1 | ||
path: tests/**/*.log.xml | ||
|
||
|
@@ -162,6 +181,9 @@ jobs: | |
/tmp/empty | ||
test_on_openEuler: | ||
strategy: | ||
matrix: | ||
compiler: [gnu12] | ||
env: | ||
JOB_SKIP_CI_SPECS: | | ||
components/runtimes/charliecloud/SPECS/charliecloud.spec | ||
|
@@ -190,7 +212,7 @@ jobs: | |
export SKIP_CI_SPECS="${{ env.SKIP_CI_SPECS }}${{ env.JOB_SKIP_CI_SPECS }}" | ||
. /etc/profile.d/lmod.sh | ||
chown ohpc -R tests | ||
tests/ci/setup_slurm_and_run_tests.sh ohpc ${{ steps.files.outputs.added_modified }} | ||
tests/ci/setup_slurm_and_run_tests.sh ohpc ${{ matrix.compiler }} ${{ steps.files.outputs.added_modified }} | ||
build_on_leap: | ||
runs-on: ubuntu-latest | ||
|
@@ -220,6 +242,9 @@ jobs: | |
/tmp/empty | ||
test_on_leap: | ||
strategy: | ||
matrix: | ||
compiler: [gnu12] | ||
env: | ||
JOB_SKIP_CI_SPECS: | | ||
components/runtimes/charliecloud/SPECS/charliecloud.spec | ||
|
@@ -246,7 +271,7 @@ jobs: | |
export SKIP_CI_SPECS="${{ env.SKIP_CI_SPECS }}${{ env.JOB_SKIP_CI_SPECS }}" | ||
. /etc/profile.d/lmod.sh | ||
chown ohpc -R tests | ||
tests/ci/setup_slurm_and_run_tests.sh ohpc ${{ steps.files.outputs.added_modified }} | ||
tests/ci/setup_slurm_and_run_tests.sh ohpc ${{ matrix.compiler }} ${{ steps.files.outputs.added_modified }} | ||
event_file: | ||
name: "Event File" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters