Skip to content

Commit f05234e

Browse files
authored
Merge pull request #1 from GaryHilares/develop
Added CI on non-main pushes
2 parents 6a5de0c + b8f717f commit f05234e

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,3 @@ jobs:
4848
uses: softprops/action-gh-release@v2
4949
with:
5050
body: See CHANGELOG.md for this version's changes.
51-
52-

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI on pushes (except to main)
2+
3+
on:
4+
push:
5+
branches-ignore: [ 'main' ]
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Configure CMake for test executable
12+
run: mkdir -p ./build/cmake && cmake -DBUILD_TYPE="testing" -S . -B ./build/cmake/
13+
- name: Build test executable
14+
run: cmake --build ./build/cmake/
15+
- name: Run tests
16+
run: ./build/cmake/rubber_numbers

0 commit comments

Comments
 (0)