diff --git a/.github/workflows/ci-bridge.yml b/.github/workflows/ci-bridge.yml deleted file mode 100644 index 547f1f9aa202..000000000000 --- a/.github/workflows/ci-bridge.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Sync GitHub and GitLab - -on: - pull_request: - types: [opened, synchronize, reopened] - -jobs: - sync: - runs-on: ubuntu-latest - container: - image: ghcr.io/spack/ci-bridge:0.0.45 - timeout-minutes: 20 # Terminate any running job after 20 minutes - - steps: - - name: Sync - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Replace with your secret name - GITLAB_SSH_KEY_BASE64: ${{ secrets.SPACK_GITLAB_SSH_KEY }} # Replace with your secret name - run: | - echo "Setting up environment variables" - # Decode the SSH key if necessary - mkdir ~/.ssh - echo "${GITLAB_SSH_KEY_BASE64}" | base64 --decode > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - #echo "Add GitLab to known hosts" - #ssh-keyscan gitlab.spack.io >> ~/.ssh/known_hosts - cd && ls -al - cd / && ls -al - python3 /scripts/SpackCIBridge.py "sebrowne/Trilinos" "ssh://git@ssh.gitlab.spack.io/sebrown/trilinos" "https://gitlab.spack.io" "sebrown/trilinos" "--sync-draft-prs" diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000000..50e58d19ccfa --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,46 @@ +# This file is a template, and might need editing before it works on your project. +# This is a sample GitLab CI/CD configuration file that should run without any modifications. +# It demonstrates a basic 3 stage CI/CD pipeline. Instead of real tests or scripts, +# it uses echo commands to simulate the pipeline execution. +# +# A pipeline is composed of independent jobs that run scripts, grouped into stages. +# Stages run in sequential order, but jobs within stages run in parallel. +# +# For more information, see: https://docs.gitlab.com/ee/ci/yaml/#stages +# +# You can copy and paste this template into a new `.gitlab-ci.yml` file. +# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword. +# +# To contribute improvements to CI/CD templates, please follow the Development guide at: +# https://docs.gitlab.com/development/cicd/templates/ +# This specific template is located at: +# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml + +stages: # List of stages for jobs, and their order of execution + - build + +gcc: + tags: + - cpu + - x86_64 + - docker + image: ghcr.io/trilinos/production/ubi8-gcc-8.3.0-serial:20250130 + stage: build + script: + - mkdir build + - pushd build + - bash -l -c "cmake -G Ninja -DTrilinos_ENABLE_Teuchos=ON -DTrilinos_ENABLE_TESTS=ON .." + - bash -l -c "ninja -j12" + - bash -l -c "ctest -j12" + +rocm: + tags: + - amd-mi300 + stage: build + image: ecpe4s/trilinos-ci-rocm6.2.1:2024.11.04 + script: + - mkdir build + - pushd build + - bash -l -c "cmake -G Ninja -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_C_COMPILER=mpicc -DTPL_ENABLE_MPI=ON -DTrilinos_ENABLE_Fortran=OFF -DTrilinos_ENABLE_Tpetra=ON -DTrilinos_ENABLE_TESTS=ON -DCMAKE_PREFIX_PATH=\"$(ls -d /usr/local/ci/pkgs/openblas*);/opt/rocm\" -DKokkos_ENABLE_HIP=ON -DKokkos_ARCH_AMD_GFX942=ON -DTpetra_INST_HIP=ON .." + - bash -l -c "ninja -j12" + - bash -l -c "ctest -j12 --output-on-failure"