Add example helloworld and configuration
This commit is contained in:
parent
196e865cda
commit
30a9b33d76
8
.drone.yml
Normal file
8
.drone.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
pipeline:
|
||||||
|
build:
|
||||||
|
image: gcc
|
||||||
|
commands:
|
||||||
|
- make clean
|
||||||
|
- make
|
||||||
|
- make install
|
||||||
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -31,4 +31,4 @@
|
|||||||
*.exe
|
*.exe
|
||||||
*.out
|
*.out
|
||||||
*.app
|
*.app
|
||||||
|
bin/
|
||||||
|
|||||||
14
Makefile
Normal file
14
Makefile
Normal 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
helloworld.cpp
Normal file
8
helloworld.cpp
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#include <iostream>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
cout << "Hello, World!";
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user