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"