Skip to content

Commit 7e358b8

Browse files
committed
try container on Linux runner
nushell requires glibc v2.32-2.35 or later install lsb-release (required by LLVM script)
1 parent bbbcd9d commit 7e358b8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 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: ubuntu:latest
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 libc6 cmake gcc g++ wget lsb-release
3032
- name: Generate compilation database
3133
if: steps.cache-build.outputs.cache-hit != 'true'
3234
run: mkdir build && cmake -Bbuild src
@@ -40,7 +42,7 @@ jobs:
4042
style: file
4143
files-changed-only: false
4244
# to ignore all build folder contents
43-
ignore: build/**
45+
ignore: build
4446
database: build
4547
verbosity: info
4648
version: ${{ matrix.clang-version }}

0 commit comments

Comments
 (0)