Skip to content

Commit bce6e02

Browse files
committed
add workflow file
1 parent cd029d6 commit bce6e02

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/myActions.yaml

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
@@ -20,6 +20,6 @@ int main()
2020
cout << "Remainder: " << x % y << endl;
2121
cout << "Square Root: " << sqrt(x) << endl;
2222
cout << "Square: " << pow(x, y) << endl;
23-
23+
cout << "this is a change for ymal" << endl;
2424
return 0;
2525
}

0 commit comments

Comments
 (0)