Skip to content

Commit c63e762

Browse files
committed
remove run on windows
1 parent 0d0a843 commit c63e762

File tree

1 file changed

+26
-38
lines changed

1 file changed

+26
-38
lines changed

.github/workflows/cmake.yml

Lines changed: 26 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,75 +3,63 @@ name: cmake
33
on:
44
pull_request:
55
branches:
6-
- 'mini20'
6+
- "mini20"
77
paths-ignore:
8-
- '.clang-format'
9-
- '.clangd'
10-
- '.gitignore'
11-
- 'LICENSE'
12-
- 'README.md'
13-
- 'docs/**'
14-
- '.github/workflows/xmake.yml'
15-
- '**/xmake.lua'
16-
- '**/*.bazel'
17-
- '**/*.bzl'
18-
- '**/*.bazelrc'
8+
- ".clang-format"
9+
- ".clangd"
10+
- ".gitignore"
11+
- "LICENSE"
12+
- "README.md"
13+
- "docs/**"
14+
- ".github/workflows/xmake.yml"
15+
- "**/xmake.lua"
16+
- "**/*.bazel"
17+
- "**/*.bzl"
18+
- "**/*.bazelrc"
1919

2020
jobs:
2121
build_and_test:
2222
strategy:
2323
matrix:
24-
os: [windows-2022, ubuntu-22.04]
24+
os: [ubuntu-22.04]
2525

2626
runs-on: ${{ matrix.os }}
2727

2828
concurrency:
29-
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-cmake-${{ matrix.os }}
30-
cancel-in-progress: true
29+
group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-cmake-${{ matrix.os }}
30+
cancel-in-progress: true
3131

3232
steps:
3333
- name: Maximize build space
3434
if: matrix.os == 'ubuntu-22.04'
3535
uses: AdityaGarg8/remove-unwanted-software@v4.1
3636
with:
37-
remove-android: 'true'
38-
remove-haskell: 'true'
39-
remove-codeql: 'true'
37+
remove-android: "true"
38+
remove-haskell: "true"
39+
remove-codeql: "true"
4040

4141
- name: Setup cuda
4242
uses: Jimver/cuda-toolkit@v0.2.20
4343
id: cuda-toolkit
4444
with:
45-
cuda: '12.6.3'
45+
cuda: "12.6.3"
4646

4747
- name: Setup ninja and Eigen3 on Ubuntu
4848
if: matrix.os == 'ubuntu-22.04'
4949
run: |
5050
sudo apt update
51-
sudo apt install ninja-build libeigen3-dev
52-
53-
- name: Setup ninja on Windows
54-
if: matrix.os == 'windows-2022'
55-
uses: seanmiddleditch/gha-setup-ninja@master
56-
57-
- name: Setup msvc sysroot for cmake on Windows
58-
if: matrix.os == 'windows-2022'
59-
uses: ilammy/msvc-dev-cmd@v1
60-
61-
- name: Install Eigen3 on Windows
62-
if: matrix.os == 'windows-2022'
63-
uses: kupns-aka-kupa/setup-eigen3@v1
64-
with:
65-
version: 3.4.0
66-
env:
67-
CMAKE_GENERATOR: Ninja
51+
sudo apt install ninja-build libeigen3-dev -y
6852
6953
- name: Checkout repository
7054
uses: actions/checkout@v4
7155
with:
7256
submodules: true
7357

74-
- name: Build and Test MUDA
58+
- name: Build MUDA
7559
run: |
7660
cmake --preset ci-release
77-
cmake --build --preset ci-release --parallel 4
61+
cmake --build --preset ci-release --parallel 4
62+
63+
- name: Run Tests
64+
run: |
65+
ctest --preset ci-release --output-on-failure

0 commit comments

Comments
 (0)