From 655e7e2e6d3227187a1e5f4369b7c9e7e699b4e4 Mon Sep 17 00:00:00 2001 From: Ben Wibking Date: Sun, 19 May 2024 22:11:50 -0400 Subject: [PATCH 1/3] add macOS CI --- .github/workflows/ci-macos.yml | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci-macos.yml diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml new file mode 100644 index 000000000000..812f64570f5f --- /dev/null +++ b/.github/workflows/ci-macos.yml @@ -0,0 +1,46 @@ +name: CI macOS + +on: [pull_request] + +# Cancel "duplicated" workflows triggered by pushes to internal +# branches with associated PRs. +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +env: + CTEST_OUTPUT_ON_FAILURE: 1 + CMAKE_BUILD_PARALLEL_LEVEL: 4 # num threads for build + +jobs: + build: + runs-on: macos-14 + + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + cache: 'pip' # caching pip dependencies + + - name: Configure + run: | + cmake -B build \ + -DCMAKE_BUILD_TYPE=Release \ + + - name: Build + run: cmake --build build + + - name: Test + run: | + cd build + ctest -LE 'regression' + + - uses: actions/upload-artifact@v3 + with: + name: configure-log-unit-${{ matrix.device }} + path: build/CMakeFiles/CMakeOutput.log + retention-days: 3 From 10b0b7198e080d479fd239b5ce23d7c65f8db177 Mon Sep 17 00:00:00 2001 From: Ben Wibking Date: Mon, 20 May 2024 13:21:10 -0400 Subject: [PATCH 2/3] use macos-latest CI image --- .github/workflows/ci-macos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 812f64570f5f..c2f9472aa5d3 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -14,7 +14,7 @@ env: jobs: build: - runs-on: macos-14 + runs-on: macos-latest steps: - uses: actions/checkout@v4 From f79b1f4eff9e49115334d7958f0b1f5fb048d30a Mon Sep 17 00:00:00 2001 From: Ben Wibking Date: Mon, 20 May 2024 13:21:59 -0400 Subject: [PATCH 3/3] Update ci-macos.yml --- .github/workflows/ci-macos.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index c2f9472aa5d3..fb70653ccb5a 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -41,6 +41,6 @@ jobs: - uses: actions/upload-artifact@v3 with: - name: configure-log-unit-${{ matrix.device }} + name: configure-log-unit-macos path: build/CMakeFiles/CMakeOutput.log retention-days: 3