From aff38fed4f491b4e48346e322ddc9b1980a2244f Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 22 Jul 2024 16:22:44 -0400 Subject: [PATCH] ci: Add nightly jobs for LFortran on Fedora --- .gitlab-ci.yml | 20 +++++++++++++++++++ .../configure_fedora40_common_lfortran.cmake | 5 +++++ ...onfigure_fedora40_makefiles_lfortran.cmake | 1 + .../configure_fedora40_ninja_lfortran.cmake | 1 + .gitlab/ci/env_fedora40_common_lfortran.sh | 1 + .gitlab/ci/env_fedora40_makefiles_lfortran.sh | 1 + .gitlab/ci/env_fedora40_ninja_lfortran.sh | 1 + .gitlab/os-linux.yml | 19 ++++++++++++++++++ 8 files changed, 49 insertions(+) create mode 100644 .gitlab/ci/configure_fedora40_common_lfortran.cmake create mode 100644 .gitlab/ci/configure_fedora40_makefiles_lfortran.cmake create mode 100644 .gitlab/ci/configure_fedora40_ninja_lfortran.cmake create mode 100644 .gitlab/ci/env_fedora40_common_lfortran.sh create mode 100644 .gitlab/ci/env_fedora40_makefiles_lfortran.sh create mode 100644 .gitlab/ci/env_fedora40_ninja_lfortran.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d52beda8f2..85ef4e7985 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -234,6 +234,26 @@ t:fedora39-hip-radeon: variables: CMAKE_CI_JOB_NIGHTLY: "true" +t:fedora40-makefiles-lfortran: + extends: + - .fedora40_makefiles_lfortran + - .cmake_test_linux_release + - .linux_x86_64_tags + - .run_dependent + - .needs_centos7_x86_64 + variables: + CMAKE_CI_JOB_NIGHTLY: "true" + +t:fedora40-ninja-lfortran: + extends: + - .fedora40_ninja_lfortran + - .cmake_test_linux_release + - .linux_x86_64_tags + - .run_dependent + - .needs_centos7_x86_64 + variables: + CMAKE_CI_JOB_NIGHTLY: "true" + t:fedora40-ninja-clang: extends: - .fedora40_ninja_clang diff --git a/.gitlab/ci/configure_fedora40_common_lfortran.cmake b/.gitlab/ci/configure_fedora40_common_lfortran.cmake new file mode 100644 index 0000000000..48469e2378 --- /dev/null +++ b/.gitlab/ci/configure_fedora40_common_lfortran.cmake @@ -0,0 +1,5 @@ +set(CMAKE_Fortran_COMPILER "/usr/bin/lfortran" CACHE FILEPATH "") +set(CMAKE_Fortran_COMPILER_ID "LFortran" CACHE STRING "") +set(CMAKE_Fortran_COMPILER_SUPPORTS_F90 "1" CACHE BOOL "") + +include("${CMAKE_CURRENT_LIST_DIR}/configure_external_test.cmake") diff --git a/.gitlab/ci/configure_fedora40_makefiles_lfortran.cmake b/.gitlab/ci/configure_fedora40_makefiles_lfortran.cmake new file mode 100644 index 0000000000..d626d4ddc0 --- /dev/null +++ b/.gitlab/ci/configure_fedora40_makefiles_lfortran.cmake @@ -0,0 +1 @@ +include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora40_common_lfortran.cmake") diff --git a/.gitlab/ci/configure_fedora40_ninja_lfortran.cmake b/.gitlab/ci/configure_fedora40_ninja_lfortran.cmake new file mode 100644 index 0000000000..d626d4ddc0 --- /dev/null +++ b/.gitlab/ci/configure_fedora40_ninja_lfortran.cmake @@ -0,0 +1 @@ +include("${CMAKE_CURRENT_LIST_DIR}/configure_fedora40_common_lfortran.cmake") diff --git a/.gitlab/ci/env_fedora40_common_lfortran.sh b/.gitlab/ci/env_fedora40_common_lfortran.sh new file mode 100644 index 0000000000..499369c2f2 --- /dev/null +++ b/.gitlab/ci/env_fedora40_common_lfortran.sh @@ -0,0 +1 @@ +export FC=/usr/bin/lfortran diff --git a/.gitlab/ci/env_fedora40_makefiles_lfortran.sh b/.gitlab/ci/env_fedora40_makefiles_lfortran.sh new file mode 100644 index 0000000000..15fbf3e221 --- /dev/null +++ b/.gitlab/ci/env_fedora40_makefiles_lfortran.sh @@ -0,0 +1 @@ +. .gitlab/ci/env_fedora40_common_lfortran.sh diff --git a/.gitlab/ci/env_fedora40_ninja_lfortran.sh b/.gitlab/ci/env_fedora40_ninja_lfortran.sh new file mode 100644 index 0000000000..15fbf3e221 --- /dev/null +++ b/.gitlab/ci/env_fedora40_ninja_lfortran.sh @@ -0,0 +1 @@ +. .gitlab/ci/env_fedora40_common_lfortran.sh diff --git a/.gitlab/os-linux.yml b/.gitlab/os-linux.yml index 73bc5fe888..11d703a16c 100644 --- a/.gitlab/os-linux.yml +++ b/.gitlab/os-linux.yml @@ -234,6 +234,25 @@ CMAKE_CONFIGURATION: fedora40_makefiles_clang CMAKE_GENERATOR: "Unix Makefiles" +.fedora40_makefiles_lfortran: + extends: .fedora40 + + variables: + # FIXME(lfortran): -rpath flags with spaces not forwarded + GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake-ci" + CMAKE_CONFIGURATION: fedora40_makefiles_lfortran + CMAKE_GENERATOR: "Unix Makefiles" + CTEST_LABELS: "Fortran" + +.fedora40_ninja_lfortran: + extends: .fedora40 + + variables: + # FIXME(lfortran): -rpath flags with spaces not forwarded + GIT_CLONE_PATH: "$CI_BUILDS_DIR/cmake-ci" + CMAKE_CONFIGURATION: fedora40_ninja_lfortran + CTEST_LABELS: "Fortran" + .fedora40_ninja_clang: extends: .fedora40