Skip to content

Commit d1915ad

Browse files
committed
add initial version of github action
1 parent 90b6358 commit d1915ad

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: C++26 Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v2
21+
22+
- name: Build Docker image
23+
run: |
24+
docker build -t cpp26-app .
25+
26+
- name: Run tests in Docker container
27+
run: |
28+
docker run --rm cpp26-app /bin/bash -c "cd /workspace && cmake -B build"

0 commit comments

Comments
 (0)