We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 015d18a commit c408746Copy full SHA for c408746
.github/workflows/example2.yml
@@ -0,0 +1,21 @@
1
+name: build-hello-world
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
8
9
+jobs:
10
+ build-hello-world:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
15
+ - name: install g++
16
+ run: sudo apt install -y g++
17
18
+ - name: check build
19
+ run: |
20
+ g++ hello_world.cpp -o hello_world
21
+ ./hello_world
hello_world.cpp
@@ -0,0 +1,9 @@
+#include <iostream>
+using namespace std;
+int main() {
+ cout << "Hello World" << endl;
+ return 0;
+}
0 commit comments