Skip to content

license

license #11

Workflow file for this run

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