Skip to content

Commit d6f809c

Browse files
authored
use pip on ubuntu for installing format dependencies (#45)
1 parent 15b0454 commit d6f809c

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/style.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ on:
88
branches:
99
- master
1010

11+
env:
12+
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
13+
1114
jobs:
1215
build:
13-
14-
runs-on: macos-latest
16+
runs-on: ubuntu-latest
1517

1618
steps:
17-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
1820

19-
- name: Install format dependencies
20-
run: pip3 install cmake_format==0.6.11 pyyaml
21+
- name: Install format dependencies
22+
run: pip3 install cmake_format==0.6.11 pyyaml
2123

22-
- name: Check source style
23-
run: cmake-format --check ./CMakeLists.txt ./cmake-format.cmake
24+
- name: Check source style
25+
run: cmake-format --check ./CMakeLists.txt ./cmake-format.cmake

.github/workflows/unix.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
build:
1313

14-
runs-on: macos-latest
14+
runs-on: ubuntu-latest
1515

1616
steps:
1717
- uses: actions/checkout@v2
@@ -25,8 +25,7 @@ jobs:
2525
2626
- name: Install format dependencies
2727
run: |
28-
brew install clang-format
29-
pip3 install cmake_format==0.6.11 pyyaml
28+
pip3 install clang-format==14.0.6 cmake_format==0.6.11 pyyaml
3029
3130
- name: Configure
3231
run: cmake -Htest -Bbuild

0 commit comments

Comments
 (0)