Skip to content

Commit c2f6fa3

Browse files
committed
Continuous integration added.
1 parent 6714671 commit c2f6fa3

File tree

3 files changed

+37
-2
lines changed

3 files changed

+37
-2
lines changed

.github/workflows/tests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
tests:
8+
runs-on: ubuntu-latest
9+
steps:
10+
-
11+
name: Set up QEMU
12+
uses: docker/setup-qemu-action@v3
13+
-
14+
name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v3
16+
-
17+
name: Login to Docker Hub
18+
uses: docker/login-action@v3
19+
with:
20+
username: ${{ secrets.DOCKERHUB_USERNAME }}
21+
password: ${{ secrets.DOCKERHUB_TOKEN }}
22+
-
23+
name: Build and push
24+
uses: docker/build-push-action@v6
25+
with:
26+
push: ${{ github.ref == 'refs/heads/master' }}
27+
tags: iantorres/expressions:latest

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
CMAKE_MINIMUM_REQUIRED(VERSION 3.28)
1+
CMAKE_MINIMUM_REQUIRED(VERSION 3.25)
22
PROJECT(Expressions VERSION 1.0.0 LANGUAGES CXX)
33

44
SET(CMAKE_CXX_STANDARD 23)
55
SET(CMAKE_CXX_STANDARD_REQUIRED True)
66

7-
OPTION(BUILD_TESTS "Build tests" ON)
7+
OPTION(BUILD_TESTS "Build tests" OFF)
88

99
INCLUDE(FetchContent)
1010

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM iantorres/boosted:latest
2+
3+
COPY . .
4+
5+
RUN cmake . -DBUILD_TESTS=ON \
6+
&& make \
7+
&& cd bin \
8+
&& ./tests

0 commit comments

Comments
 (0)