Skip to content

Commit 6d9b053

Browse files
authored
ci: Rename action and add C++ build steps
Updated GitHub Actions workflow to build a C++ program.
1 parent 2e5d7a7 commit 6d9b053

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/myaction.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Hello-World
1+
name: build-hello-world
22

33
on:
44
push:
@@ -7,10 +7,15 @@ on:
77
branches: [main]
88

99
jobs:
10-
hello-world-job:
11-
10+
build-hello-world:
1211
runs-on: ubuntu-latest
13-
1412
steps:
15-
- name: Hello World
16-
run: echo 'Hello World'
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

0 commit comments

Comments
 (0)