Skip to content

Commit d52c1a7

Browse files
committed
pushing actions.yml file
1 parent 29abc0c commit d52c1a7

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/actions.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build C++
2+
3+
on:
4+
push:
5+
branches: "**"
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
install:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Install dependencies
14+
run: |
15+
sudo apt-get update
16+
sudo apt-get install -y -f build-essential g++ cmake
17+
build:
18+
needs: install
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Build project
23+
run: g++ -std=c++17 main.cpp

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ using std::cout;
88
int main()
99
{
1010
cout << "THE FIRST EXAMPLE MATH DISPLAY!\n";
11-
cout << "Hi, please enter two whole numbers: ";
11+
cout << "Hi, please enter two whole numbers please: ";
1212

1313
int x,y;
1414

0 commit comments

Comments
 (0)