Skip to content

Commit 55f9aff

Browse files
committed
try container on Linux runner
1 parent bbbcd9d commit 55f9aff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/cpp-lint-action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ jobs:
99
test:
1010
strategy:
1111
matrix:
12-
os: [ ubuntu-latest, macos-latest, windows-latest ]
12+
os: [ ubuntu-latest, ] # macos-latest, windows-latest ]
1313
clang-version: ['9','10', '11', '12', '13', '14', '15', '16', '17', '18']
1414
fail-fast: false
1515

1616
runs-on: ${{ matrix.os }}
17+
container: xianpengshen/clang-tools:all
1718
steps:
1819
- uses: actions/checkout@v4
1920
with:
20-
submodules: true
21+
# submodules: true
2122
repository: cpp-linter/test-cpp-linter-action
2223

2324
- name: Cache the build artifacts
@@ -27,6 +28,7 @@ jobs:
2728
path: build
2829
key: ${{ runner.os }}-${{ hashFiles('src/CMakeLists.txt', 'src/demo.cpp', 'src/demo.hpp') }}
2930

31+
- run: apt-get update && apt-get install -y cmake gcc g++ sudo
3032
- name: Generate compilation database
3133
if: steps.cache-build.outputs.cache-hit != 'true'
3234
run: mkdir build && cmake -Bbuild src

0 commit comments

Comments
 (0)