Skip to content

Commit

Permalink
Run GitHub Actions on macOS too
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jun 3, 2024
1 parent 2b93f98 commit d993421
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
cc: clang
cxx: clang++
shell: sh
- os: macos-latest
cc: clang
cxx: clang++
shell: sh

defaults:
run:
Expand All @@ -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: >
Expand Down
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
cc: gcc
cxx: g++
shell: sh
- os: macos-latest
cc: clang
cxx: clang++
shell: sh

defaults:
run:
Expand All @@ -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: >
Expand Down
2 changes: 2 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
brew "cmake"
brew "shellcheck"

0 comments on commit d993421

Please sign in to comment.