Skip to content

Cmaize refactor

Cmaize refactor #25

Workflow file for this run

# Copyright 2023 NWChemEx-Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: .github Pull Request Workflow
on:
pull_request:
branches:
- master
jobs:
# Common-Pull-Request:
# uses: NWChemEx/.github/.github/workflows/common_pull_request.yaml@master
# with:
# config_file: '.github/.licenserc.yaml'
# source_dir: 'include src tests'
# compilers: '["gcc-11", "clang-11"]'
# doc_target: 'pluginplay_cxx_api'
# secrets: inherit
test_library:
runs-on: ubuntu-latest
container:
image: ghcr.io/nwchemex/nwx_buildenv:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.CONTAINER_REPO_TOKEN }}
strategy:
matrix:
compiler: gcc-11

Check failure on line 41 in .github/workflows/pull_request.yaml

View workflow run for this annotation

GitHub Actions / .github Pull Request Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/pull_request.yaml (Line: 41, Col: 19): Unexpected value 'gcc-11'
steps:
- uses: actions/checkout@v4
- name: Append Repo Settings to CMake Toolchain
if: inputs.repo_toolchain != ''
run: |
toolchain=/toolchains/nwx_${{ matrix.compiler }}.cmake
echo 'include('${PWD}'/${{ inputs.repo_toolchain }})' >> $toolchain
shell: bash
- name: Locate boost
run: |
locate boost_container
- name: Build and Test
env:
CMAIZE_GITHUB_TOKEN: ${{secrets.CMAIZE_GITHUB_TOKEN}}
run: |
toolchain=/toolchains/nwx_${{ matrix.compiler }}.cmake
echo 'set(CMAIZE_GITHUB_TOKEN '${CMAIZE_GITHUB_TOKEN}')' >> $toolchain
cmake -Bbuild -H. -GNinja \
-DCMAKE_INSTALL_PREFIX=./install \
-DCMAKE_TOOLCHAIN_FILE="${toolchain}"
cmake --build build --parallel
cd build
OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 ctest -VV
shell: bash