Unverified Commit 9db9e29e authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon Committed by GitHub
Browse files

Merge pull request #3131 from chuckatkins/github-actions-windows

ci: Add windows builds
parents 8628a09d 2ba2e8eb
Loading
Loading
Loading
Loading
+284 −224
Original line number Diff line number Diff line
@@ -97,12 +97,16 @@ jobs:
      image: ornladios/adios2:ci-spack-el8-${{ matrix.compiler }}-${{ matrix.parallel }}
      options: --shm-size=1g
      env:
        GH_YML_JOBNAME: el8-${{ matrix.compiler }}-${{ matrix.parallel }}
        GH_YML_OS: Linux
        GH_YML_JOBNAME: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}
        GH_YML_BASE_OS: Linux
        GH_YML_MATRIX_OS: ${{ matrix.os }}
        GH_YML_MATRIX_COMPILER: ${{ matrix.compiler }}
        GH_YML_MATRIX_PARALLEL: ${{ matrix.parallel }}

    strategy:
      fail-fast: false
      matrix:
        os: [el8]
        compiler: [gcc8, gcc9, gcc10, gcc11, icc, oneapi, nvhpc222]
        parallel: [serial, mpi]

@@ -134,20 +138,30 @@ jobs:
      image: ${{ matrix.container }}
      options: --privileged --shm-size=1g
      env:
        GH_YML_JOBNAME: ${{ matrix.jobname }}
        GH_YML_OS: Linux
        GH_YML_JOBNAME: ${{ matrix.cpu }}-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}
        GH_YML_BASE_OS: Linux
        GH_YML_MATRIX_OS: ${{ matrix.os }}
        GH_YML_MATRIX_COMPILER: ${{ matrix.compiler }}
        GH_YML_MATRIX_PARALLEL: ${{ matrix.parallel }}

    strategy:
      fail-fast: false
      matrix:
        jobname: [
          power8-el7-xl,
          power8-el7-xl-smpi ]
        cpu: [power8]
        os: [el7]
        compiler: [xl]
        parallel: [serial, mpi]
        include:
        - jobname: power8-el7-xl
          - cpu: power8
            os: el7
            compiler: xl
            parallel: serial
            container: ornladios/adios2:ci-x86_64-power8-el7-xl
            arch: ppc64le
        - jobname: power8-el7-xl-smpi
          - cpu: power8
            os: el7
            compiler: xl
            parallel: mpi
            container: ornladios/adios2:ci-x86_64-power8-el7-xl-smpi
            arch: ppc64le

@@ -183,26 +197,27 @@ jobs:

    runs-on: ${{ matrix.image }}
    env:
      GH_YML_JOBNAME: ${{ matrix.os }}-${{ matrix.parallel }}
      GH_YML_OS: macOS
      GH_YML_XCODE: "${{ matrix.xcode }}"
      GH_YML_JOBNAME: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}
      GH_YML_BASE_OS: macOS
      GH_YML_MATRIX_OS: ${{ matrix.os }}
      GH_YML_MATRIX_COMPILER: ${{ matrix.compiler }}
      GH_YML_MATRIX_PARALLEL: ${{ matrix.parallel }}

    strategy:
      fail-fast: false
      matrix:
        os: [ macos10, macos11, macos11_12sdk ]
        # parallel: [ serial, mpi ]
        os: [macos10_15, macos11, macos11_12sdk]
        parallel: [serial]
        include:
        - os: macos10
          - os: macos10_15
            image: macos-10.15
          xcode: "12.1.1"
            compiler: xcode12_1_1
          - os: macos11
            image: macos-11
          xcode: "13.0"
            compiler: xcode13_0
          - os: macos11_12sdk
            image: macos-11
          xcode: "13.2.1"
            compiler: xcode13_2_1

    steps:
      - uses: actions/checkout@v3
@@ -223,6 +238,56 @@ jobs:
      - name: Test
        run: gha/scripts/ci/gh-actions/run.sh test


  windows:
    needs: [format, git_checks]
    if: needs.git_checks.outputs.num_code_changes > 0

    runs-on: ${{ matrix.image }}
    env:
      GH_YML_JOBNAME: ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.parallel }}
      GH_YML_BASE_OS: Windows
      GH_YML_MATRIX_OS: ${{ matrix.os }}
      GH_YML_MATRIX_COMPILER: ${{ matrix.compiler }}
      GH_YML_MATRIX_PARALLEL: ${{ matrix.parallel }}

    strategy:
      fail-fast: false
      matrix:
        os: [win2019, win2022]
        parallel: [serial, mpi]
        include:
          - os: win2019
            image: windows-2019
            compiler: vs2019
          - os: win2022
            image: windows-2022
            compiler: vs2022

    defaults:
      run:
        shell: bash

    steps:
      - uses: actions/checkout@v3
        with:
          path: gha
      - uses: actions/checkout@v3
        with:
          ref: ${{ github.event.pull_request.head.sha }}
          path: source
      - name: Setup
        shell: pwsh
        run: gha/scripts/ci/gh-actions/windows-setup.ps1
      - name: Update
        run: gha/scripts/ci/gh-actions/run.sh update
      - name: Configure
        run: gha/scripts/ci/gh-actions/run.sh configure
      - name: Build
        run: gha/scripts/ci/gh-actions/run.sh build
      - name: Test
        run: gha/scripts/ci/gh-actions/run.sh test

#######################################
# Docker container jobs
#######################################
@@ -235,8 +300,7 @@ jobs:
    strategy:
      fail-fast: false
      matrix:
        baseos: [
          ubuntu-bionic ]
        baseos: [ubuntu-bionic]

    steps:
      - uses: actions/checkout@v3
@@ -301,11 +365,7 @@ jobs:
    strategy:
      fail-fast: false
      matrix:
        code: [
          examples,
          lammps,
          scorpio,
          tau ]
        code: [examples, lammps, scorpio, tau]
        include:
          - code: examples
            repo: ornladios/ADIOS2-Examples
Loading