From d993421190df975b5f338da943e9cce1ba19da9f Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 3 Jun 2024 11:54:51 -0400 Subject: [PATCH] Run GitHub Actions on macOS too Signed-off-by: Juan Cruz Viotti --- .github/workflows/package.yml | 10 ++++++++++ .github/workflows/test.yml | 13 ++++++++++++- Brewfile | 2 ++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 Brewfile diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index b362c8b..7d3964b 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -22,6 +22,10 @@ jobs: cc: clang cxx: clang++ shell: sh + - os: macos-latest + cc: clang + cxx: clang++ + shell: sh defaults: run: @@ -33,6 +37,12 @@ jobs: CXX: ${{ matrix.platform.cxx }} steps: - uses: actions/checkout@v4 + - name: Install dependencies (macOS) + if: runner.os == 'macos' + run: brew bundle + env: + HOMEBREW_NO_ANALYTICS: 1 + HOMEBREW_NO_AUTO_UPDATE: 1 - run: cmake --version - name: Configure JSON Schema run: > diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eafbb2e..5b8e348 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,6 +17,10 @@ jobs: cc: gcc cxx: g++ shell: sh + - os: macos-latest + cc: clang + cxx: clang++ + shell: sh defaults: run: @@ -30,7 +34,14 @@ jobs: - name: Install ClangFormat run: pip install clang-format==18.1.5 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Install dependencies (macOS) + if: runner.os == 'macos' + run: brew bundle + env: + HOMEBREW_NO_ANALYTICS: 1 + HOMEBREW_NO_AUTO_UPDATE: 1 + - run: cmake --version - name: Configure JSON Schema run: > diff --git a/Brewfile b/Brewfile new file mode 100644 index 0000000..f035e69 --- /dev/null +++ b/Brewfile @@ -0,0 +1,2 @@ +brew "cmake" +brew "shellcheck"