diff --git a/.github/workflows/key4hep-build-cvmfs.yaml b/.github/workflows/key4hep-build-cvmfs.yaml new file mode 100644 index 00000000..d5f1d7c9 --- /dev/null +++ b/.github/workflows/key4hep-build-cvmfs.yaml @@ -0,0 +1,20 @@ +name: Key4hep build + +on: + push: + workflow_dispatch: + +jobs: + build: + strategy: + matrix: + build_type: ["release", "nightly"] + image: ["alma9", "ubuntu22", "centos7"] + fail-fast: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: key4hep/key4hep-actions/key4hep-build-test@main + with: + build_type: ${{ matrix.build_type }} + image: ${{ matrix.image }} \ No newline at end of file diff --git a/.github/workflows/key4hep-build.yaml b/.github/workflows/key4hep-build.yaml new file mode 100644 index 00000000..350ce5c3 --- /dev/null +++ b/.github/workflows/key4hep-build.yaml @@ -0,0 +1,81 @@ +name: key4hep-build + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + alma9: + runs-on: ubuntu-latest + container: + image: ghcr.io/key4hep/key4hep-images/alma9:latest + strategy: + fail-fast: false + matrix: + release: ["sw.hsf.org/key4hep", "sw-nightlies.hsf.org/key4hep"] + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up CVMFS + uses: cvmfs-contrib/github-action-cvmfs@v3 + + - name: Setup environment and build + run: | + source ${{ matrix.release }}/setup.sh + mkdir build + cd build + cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=../install -G Ninja + ninja install + ctest -j $(nproc) --output-on-failure + + ubuntu: + runs-on: ubuntu-latest + container: + image: ghcr.io/key4hep/key4hep-images/ubuntu22:latest + strategy: + fail-fast: false + matrix: + release: ["sw.hsf.org/key4hep", "sw-nightlies.hsf.org/key4hep"] + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up CVMFS + uses: cvmfs-contrib/github-action-cvmfs@v3 + + - name: Setup environment and build + run: | + source ${{ matrix.release }}/setup.sh + mkdir build + cd build + cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=../install -G Ninja + ninja install + ctest -j $(nproc) --output-on-failure + + + centos7: + runs-on: ubuntu-latest + container: + image: ghcr.io/key4hep/key4hep-images/centos7:latest + strategy: + fail-fast: false + matrix: + release: ["sw.hsf.org/key4hep", "sw-nightlies.hsf.org/key4hep"] + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up CVMFS + uses: cvmfs-contrib/github-action-cvmfs@v3 + + - name: Setup environment and build + run: | + source ${{ matrix.release }}/setup.sh + mkdir build + cd build + cmake .. -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=../install -G Ninja + ninja install + ctest -j $(nproc) --output-on-failure diff --git a/LICENSE b/LICENSE index 261eeb9e..bcc38f64 100644 --- a/LICENSE +++ b/LICENSE @@ -2,7 +2,7 @@ Version 2.0, January 2004 http://www.apache.org/licenses/ - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + TERMS AND CON DITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. @@ -198,4 +198,4 @@ 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. + limitations under the License.