Skip to content

Commit d7ff044

Browse files
committedMar 27, 2023
fix: cmake_runner.yml
1 parent 1550bfa commit d7ff044

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed
 

‎.github/workflows/cmake_runner.yml

+4-27
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: CMake Build Matrix
22

3-
# Controls when the action will run. Triggers the workflow on push
4-
on:
5-
push:
6-
branches: [ "master" ]
7-
pull_request:
8-
branches: [ "master" ]
3+
on: [push, pull_request]
94

105
jobs:
116
build:
@@ -25,15 +20,6 @@ jobs:
2520
environment_script: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
2621
generator: "Visual Studio 17 2022"
2722
}
28-
- {
29-
name: "Windows Latest MinGW",
30-
os: windows-latest,
31-
artifact: "windows_mingw",
32-
build_type: "Release",
33-
cc: "gcc",
34-
cxx: "g++",
35-
generator: "Ninja"
36-
}
3723
- {
3824
name: "Ubuntu Latest GCC",
3925
os: ubuntu-latest,
@@ -95,28 +81,19 @@ jobs:
9581
-G "${{ matrix.config.generator }}"
9682
9783
- name: Build
98-
working-directory: ${{github.workspace}}/build
84+
working-directory: ${{ github.workspace }}/build
9985
shell: bash
10086
run: cmake --build . --config ${{ matrix.config.build_type }}
10187

10288
- name: Log
10389
run: echo ${{ matrix.config.generator }}
10490

105-
- name: Execute generated by VS
106-
if: ${{ matrix.config.generator == 'Visual Studio 17 2022' }}
107-
run: ${{ github.workspace }}\build\bin\${{ matrix.config.build_type }}\hw1.exe
108-
109-
- name: Execute
110-
if: ${{ matrix.config.generator != 'Visual Studio 17 2022' }}
111-
working-directory: ${{ github.workspace }}/build/bin
112-
run: ./hw1
113-
11491
- name: Test
115-
working-directory: ${{github.workspace}}/build
92+
working-directory: ${{ github.workspace }}/build
11693
run: ctest -C ${{ matrix.config.build_type }}
11794

11895
- name: Upload Artifacts
11996
uses: actions/upload-artifact@v3
12097
with:
121-
path: ${{github.workspace}}/build/bin/
98+
path: ${{ github.workspace }}/build/bin/${{ matrix.config.build_type }}
12299
name: ${{ matrix.config.artifact }}

0 commit comments

Comments
 (0)
Please sign in to comment.