Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
barne856 committed Jul 28, 2024
1 parent 0f7e9c0 commit 3339088
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Docker
uses: docker/setup-docker@v2

- name: Cache Docker images
uses: actions/cache@v3
with:
path: ~\AppData\Local\Docker\windowsfilter
key: ${{ runner.os }}-docker-${{ matrix.compiler }}-${{ matrix.version }}-${{ hashFiles(format('{0}/{1}', github.workspace, matrix.dockerfile)) }}
restore-keys: |
${{ runner.os }}-docker-${{ matrix.compiler }}-${{ matrix.version }}-
- name: Build Docker image
run: |
docker build -t ${{ matrix.compiler }}-${{ matrix.version }}:latest `
Expand All @@ -110,7 +99,7 @@ jobs:

- name: Build and Test in Docker
run: |
docker run --rm -v ${{ github.workspace }}:C:\src ${{ matrix.compiler }}-${{ matrix.version }}:latest powershell -Command "
docker run --rm -v ${PWD}:C:\src ${{ matrix.compiler }}-${{ matrix.version }}:latest powershell -Command "
cd C:\src;
mkdir build;
cd build;
Expand Down Expand Up @@ -163,12 +152,11 @@ jobs:
cd /src &&
mkdir build &&
cd build &&
cmake .. -G Ninja -DSQUINT_BUILD_TESTS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBLAS_BACKEND=NONE &&
cmake --build . &&
cmake -G Ninja -DSQUINT_BUILD_TESTS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBLAS_BACKEND=NONE .. &&
cd .. &&
cmake --build ./build &&
find ./include -name '*.cpp' -or -name '*.hpp' |
xargs -P $(nproc) clang-tidy -p .
--config-file=./.clang-tidy
xargs -P $(nproc) clang-tidy -p build
"
- name: Check Clang-Tidy result
Expand Down

0 comments on commit 3339088

Please sign in to comment.