Skip to content

Commit

Permalink
Update clang.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenberry committed Jan 13, 2025
1 parent 1ad3ec1 commit b75e032
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,39 @@ name: clang
on:
push:
branches:
- main
- feature/*
- main
- feature/*
paths-ignore:
- '**.md'
- '**/*.md'
- 'docs/**'
pull_request:
branches: [main]
branches:
- main
paths-ignore:
- '**.md'
- '**/*.md'
- 'docs/**'
workflow_dispatch:

env:
BUILD_TYPE: Release
BUILD_TYPE: Debug

jobs:
build:
runs-on: macos-12
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Set Apple Clang 14 as the compiler
run: |
echo "CC=$(brew --prefix llvm@14)/bin/clang" >> "$GITHUB_ENV"
echo "CXX=$(brew --prefix llvm@14)/bin/clang++" >> "$GITHUB_ENV"
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build build --config ${{env.BUILD_TYPE}} -j 2
run: cmake --build build --config ${{env.BUILD_TYPE}} -j 3

- name: Test
working-directory: build
run: ctest -C ${{env.BUILD_TYPE}} -j 2 --output-on-failure
run: ctest -C ${{env.BUILD_TYPE}} -j 3 --output-on-failure

0 comments on commit b75e032

Please sign in to comment.