1name: Test on OS X 2on: 3 push: 4 branches: 5 - master 6 pull_request: 7 workflow_dispatch: 8 inputs: 9 debug_enabled: 10 description: 'Run the tests with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' 11 required: false 12 default: false 13 schedule: 14 # Run at 8:13 on the 1st day of each month 15 - cron: '13 8 1 * *' 16jobs: 17 macOS-12: 18 runs-on: macos-12 19 env: 20 COMPILER: ${{ matrix.config.compiler }} 21 STL: ${{ matrix.config.stl }} 22 OS: osx 23 steps: 24 - uses: actions/checkout@v3 25 - name: install 26 run: extras/scripts/ci_install_osx.sh 27 - name: test 28 run: extras/scripts/postsubmit.sh ${{ matrix.config.test }} 29 - name: Setup tmate session 30 uses: mxschmitt/action-tmate@v3 31 if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }} 32 strategy: 33 fail-fast: false 34 matrix: 35 config: 36 - {compiler: clang-default, stl: libc++, test: ReleasePlainNoPchNoClangTidy} 37 - {compiler: clang-default, stl: libc++, test: DebugAsanUbsanNoPchNoClangTidy} 38 - {compiler: clang-default, stl: libc++, test: DebugPlainNoPchNoClangTidy} 39 - {compiler: clang-14.0, stl: libc++, test: ReleasePlainNoPchNoClangTidy} 40 - {compiler: clang-14.0, stl: libc++, test: DebugAsanUbsanNoPchNoClangTidy} 41 - {compiler: clang-14.0, stl: libc++, test: DebugPlainNoPchNoClangTidy} 42 - {compiler: clang-11.0, stl: libc++, test: ReleasePlainNoClangTidy} 43 - {compiler: clang-11.0, stl: libc++, test: DebugAsanUbsanNoClangTidy} 44 # Disabled due to https://github.com/iains/gcc-12-branch/issues/6 45 # - {compiler: gcc-11, test: ReleasePlainNoPchNoClangTidy} 46 # - {compiler: gcc-11, test: DebugPlainNoPchNoClangTidy} 47 # - {compiler: gcc-9, test: ReleasePlainNoClangTidy} 48 # - {compiler: gcc-9, test: DebugPlainNoClangTidy} 49 macOS-11: 50 runs-on: macos-11 51 env: 52 COMPILER: ${{ matrix.config.compiler }} 53 STL: ${{ matrix.config.stl }} 54 OS: osx 55 steps: 56 - uses: actions/checkout@v3 57 - name: install 58 run: extras/scripts/ci_install_osx.sh 59 - name: test 60 run: extras/scripts/postsubmit.sh ${{ matrix.config.test }} 61 - name: Setup tmate session 62 uses: mxschmitt/action-tmate@v3 63 if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }} 64 strategy: 65 fail-fast: false 66 matrix: 67 config: 68 - {compiler: clang-default, stl: libc++, test: ReleasePlainNoPchNoClangTidy} 69 - {compiler: clang-default, stl: libc++, test: DebugAsanUbsanNoPchNoClangTidy} 70 - {compiler: clang-default, stl: libc++, test: DebugPlainNoPchNoClangTidy} 71 - {compiler: clang-14.0, stl: libc++, test: ReleasePlainNoPchNoClangTidy} 72 - {compiler: clang-14.0, stl: libc++, test: DebugAsanUbsanNoPchNoClangTidy} 73 - {compiler: clang-14.0, stl: libc++, test: DebugPlainNoPchNoClangTidy} 74 - {compiler: clang-12.0, stl: libc++, test: ReleasePlainNoClangTidy} 75 - {compiler: clang-12.0, stl: libc++, test: DebugAsanUbsanNoClangTidy} 76 - {compiler: gcc-11, test: ReleasePlainNoPchNoClangTidy} 77 - {compiler: gcc-11, test: DebugPlainNoPchNoClangTidy} 78 - {compiler: gcc-9, test: ReleasePlainNoClangTidy} 79 - {compiler: gcc-9, test: DebugPlainNoClangTidy} 80 macOS-10-15: 81 runs-on: macos-10.15 82 env: 83 COMPILER: ${{ matrix.config.compiler }} 84 STL: ${{ matrix.config.stl }} 85 OS: osx 86 steps: 87 - uses: actions/checkout@v3 88 - name: install 89 run: extras/scripts/ci_install_osx.sh 90 - name: test 91 run: extras/scripts/postsubmit.sh ${{ matrix.config.test }} 92 - name: Setup tmate session 93 uses: mxschmitt/action-tmate@v3 94 if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled && failure() }} 95 strategy: 96 fail-fast: false 97 matrix: 98 config: 99 - {compiler: clang-default, stl: libc++, test: ReleasePlainNoPchNoClangTidy} 100 - {compiler: clang-default, stl: libc++, test: DebugAsanUbsanNoPchNoClangTidy} 101 - {compiler: clang-default, stl: libc++, test: DebugPlainNoPchNoClangTidy} 102 - {compiler: clang-14.0, stl: libc++, test: ReleasePlainNoPchNoClangTidy} 103 - {compiler: clang-14.0, stl: libc++, test: DebugAsanUbsanNoPchNoClangTidy} 104 - {compiler: clang-14.0, stl: libc++, test: DebugPlainNoPchNoClangTidy} 105 - {compiler: clang-12.0, stl: libc++, test: ReleasePlainNoClangTidy} 106 - {compiler: clang-12.0, stl: libc++, test: DebugAsanUbsanNoClangTidy} 107 - {compiler: gcc-11, test: ReleasePlainNoPchNoClangTidy} 108 - {compiler: gcc-11, test: DebugPlainNoPchNoClangTidy} 109 - {compiler: gcc-9, test: ReleasePlainNoClangTidy} 110 - {compiler: gcc-9, test: DebugPlainNoClangTidy} 111