license #11
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: C++ CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y g++ make | |
- name: Build | |
run: | | |
make all | |
- name: Run executable | |
run: | | |
# Example execution; adjust arguments as needed | |
./lab4 trace 1,2-4,3 100 3 \ | |
P1,0,5 P2,2,3 P3,4,2 | |
- name: Verify build artifacts | |
run: | | |
# Verify that the executable exists and is executable | |
if [ ! -x ./cpu-scheduler ]; then echo "Executable not found" && exit 1; fi |