Skip to content

Commit 9536901

Browse files
committed
Test out GH Actions for CPP
1 parent d676eff commit 9536901

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/cpp.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
defaults:
15+
run:
16+
working-directory: ./simple_cpp
17+
18+
container:
19+
image: gcc:15.2.0
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: build
24+
run: gcc -o a.out main.cpp
25+
- name: run
26+
run: ./a.out < input.in

0 commit comments

Comments
 (0)