Skip to content

Commit cd5f3ff

Browse files
committed
Fix Github Actions to also triggers on pull requests
Not only on push from myself!
1 parent a5c783d commit cd5f3ff

File tree

1 file changed

+54
-54
lines changed

1 file changed

+54
-54
lines changed

.github/workflows/build.yml

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
name: build
2-
3-
on: [push]
4-
5-
jobs:
6-
build:
7-
name: ${{ matrix.config.name }}
8-
runs-on: ${{ matrix.config.os }}
9-
strategy:
10-
fail-fast: false
11-
matrix:
12-
config:
13-
- {
14-
name: "Windows Latest MSVC",
15-
os: windows-latest,
16-
build_type: "Debug", cc: "cl", cxx: "cl",
17-
}
18-
# TODO: this is not working, since CMake is using generator for latest Visual Studio
19-
#- {
20-
# name: "Windows Latest MinGW",
21-
# os: windows-latest,
22-
# build_type: "Debug", cc: "gcc", cxx: "g++"
23-
# }
24-
- {
25-
name: "Ubuntu Latest GCC",
26-
os: ubuntu-latest,
27-
build_type: "Debug", cc: "gcc", cxx: "g++"
28-
}
29-
- {
30-
name: "macOS Latest Clang",
31-
os: macos-latest,
32-
build_type: "Debug", cc: "clang", cxx: "clang++"
33-
}
34-
35-
steps:
36-
- uses: actions/checkout@v2
37-
- name: submodule
38-
run: git submodule update --init --recursive
39-
- name: configure
40-
shell: cmake -P {0}
41-
run: |
42-
set(ENV{CC} ${{matrix.config.cc}})
43-
set(ENV{CXX} ${{matrix.config.cxx}})
44-
- name: generate
45-
run: |
46-
mkdir build
47-
cd build
48-
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF -DSQLITECPP_RUN_CPPLINT=OFF ..
49-
- name: build
50-
run: cmake --build build --config ${{matrix.config.build_type}}
51-
- name: test
52-
run: |
53-
cd build
54-
ctest --verbose --output-on-failure
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: ${{ matrix.config.name }}
8+
runs-on: ${{ matrix.config.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
config:
13+
- {
14+
name: "Windows Latest MSVC",
15+
os: windows-latest,
16+
build_type: "Debug", cc: "cl", cxx: "cl",
17+
}
18+
# TODO: this is not working, since CMake is using generator for latest Visual Studio
19+
#- {
20+
# name: "Windows Latest MinGW",
21+
# os: windows-latest,
22+
# build_type: "Debug", cc: "gcc", cxx: "g++"
23+
# }
24+
- {
25+
name: "Ubuntu Latest GCC",
26+
os: ubuntu-latest,
27+
build_type: "Debug", cc: "gcc", cxx: "g++"
28+
}
29+
- {
30+
name: "macOS Latest Clang",
31+
os: macos-latest,
32+
build_type: "Debug", cc: "clang", cxx: "clang++"
33+
}
34+
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: submodule
38+
run: git submodule update --init --recursive
39+
- name: configure
40+
shell: cmake -P {0}
41+
run: |
42+
set(ENV{CC} ${{matrix.config.cc}})
43+
set(ENV{CXX} ${{matrix.config.cxx}})
44+
- name: generate
45+
run: |
46+
mkdir build
47+
cd build
48+
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} -DSQLITECPP_BUILD_EXAMPLES=ON -DSQLITECPP_BUILD_TESTS=ON -DSQLITECPP_RUN_CPPCHECK=OFF -DSQLITECPP_RUN_CPPLINT=OFF ..
49+
- name: build
50+
run: cmake --build build --config ${{matrix.config.build_type}}
51+
- name: test
52+
run: |
53+
cd build
54+
ctest --verbose --output-on-failure

0 commit comments

Comments
 (0)