We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2494188 commit 6b2f9adCopy full SHA for 6b2f9ad
2 files changed
.github/workflows/test.yml
@@ -9,7 +9,16 @@ on:
9
- main
10
11
jobs:
12
+ compile:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - run: g++ -Wall -Wextra -o test source.cpp
17
+ - run: ./test
18
+
19
test:
20
+ needs:
21
+ - compile
22
runs-on: ubuntu-latest
23
steps:
24
- uses: actions/checkout@v4
source.cpp
@@ -0,0 +1,6 @@
1
+#include <iostream>
2
3
+int main() {
4
+ int unused_variable = 42;
5
+ std::cout << "Hello, World!" << std::endl;
6
+}
0 commit comments