Skip to content

Commit

Permalink
Use the ubuntu image for format CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Dec 22, 2022
1 parent 23fc4fd commit 424a448
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,20 @@ jobs:
working-directory: build

format:
runs-on: macos-12
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

- name: Install Poac & clang-format
run: |
brew update
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install poac clang-format
echo "$(brew --prefix clang-format)/bin" >> "$GITHUB_PATH"
- name: Check format
run: poac fmt --check --verbose
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
poac fmt --check --verbose
lint:
runs-on: ubuntu-22.04
Expand All @@ -47,7 +50,6 @@ jobs:
- name: Install Poac
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew update
brew install poac
- name: Install cpplint
Expand Down

0 comments on commit 424a448

Please sign in to comment.