Added pthreads dependency #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build-and-Test-Program | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| job_one: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install g++ | |
| run: | | |
| sudo apt install g++ | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Print working directory | |
| run: | | |
| pwd | |
| - name: Show directory contents | |
| run: | | |
| ls | |
| - name: Build program | |
| run: | | |
| sudo g++ src/main.cpp -o test.out | |
| - name: Run program | |
| run: | | |
| sudo ./test.out |