Add example helloworld and configuration

This commit is contained in:
2018-07-26 13:07:42 +09:00
parent 196e865cda
commit 30a9b33d76
4 changed files with 31 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
pipeline:
build:
image: gcc
commands:
- make clean
- make
- make install
+1 -1
View File
@@ -31,4 +31,4 @@
*.exe
*.out
*.app
bin/
+14
View File
@@ -0,0 +1,14 @@
.PHONY: all
all: helloworld
helloworld: helloworld.cpp
g++ helloworld.cpp -o helloworld
.PHONY: install
install:
mkdir -p bin
mv helloworld bin
.PHONY: clean
clean:
rm -f hello
+8
View File
@@ -0,0 +1,8 @@
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, World!";
return 0;
}