Skip to content

Commit 2ab4b39

Browse files
authored
Modify cpp.yml for build path and C++20 standard
1 parent f9aab93 commit 2ab4b39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/cpp.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
branches: [ "main" ]
66
paths:
77
- 'cpp/**'
8+
- '.github/workflows/cpp.yml'
89
pull_request:
910
branches: [ "main" ]
1011
paths:
1112
- 'cpp/**'
13+
- '.github/workflows/cpp.yml'
1214

1315
jobs:
1416
build:
@@ -25,6 +27,6 @@ jobs:
2527
steps:
2628
- uses: actions/checkout@v4
2729
- name: build
28-
run: g++ -o a.out main.cpp
30+
run: g++ -std=c++20 -o a.out main.cpp
2931
- name: run
3032
run: ./a.out < input.in

0 commit comments

Comments
 (0)