Removed sudo for github actions #2
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install dependencies | |
| run: sudo apt-get install -y make gcc gcov | |
| - name: Build | |
| run: | | |
| cd C/Checksum | |
| make all | |
| - name: Run unit tests | |
| run: | | |
| cd Lab1 | |
| ./Lab1 |