diff --git a/.github/workflows/myworkflow.yml b/.github/workflows/myworkflow.yml index 581cbe8..5f9e76f 100644 --- a/.github/workflows/myworkflow.yml +++ b/.github/workflows/myworkflow.yml @@ -10,15 +10,14 @@ jobs: install: runs-on: ubuntu-latest steps: - - name: install dependencies - run: | + - name: Install dependencies + run: | sudo apt-get update sudo apt-get install -y -f build-essential g++ cmake - build: needs: install runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Build project - run: g++ main.cpp -o test.o + - uses: actions/checkout@v3 + - name: Build project + run: g++ main.cpp -std=c++17 -o firstIO diff --git a/man.cpp b/man.cpp index e45a359..0b12850 100644 --- a/man.cpp +++ b/man.cpp @@ -4,5 +4,5 @@ using namespace std; int main() { cout << "Hello world!"; - return 0; + return 0 } \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..afbc866 --- /dev/null +++ b/readme.md @@ -0,0 +1 @@ +[![Build C++](https://github.com/murthy-001/practice2/actions/workflows/myworkflow.yml/badge.svg)](https://github.com/murthy-001/practice2/actions/workflows/myworkflow.yml) \ No newline at end of file