From 78059948083719771f6c3e4c8ae12c6cd645da28 Mon Sep 17 00:00:00 2001 From: Ahmed Osama Date: Mon, 6 May 2024 04:02:56 +0300 Subject: [PATCH] separate actions --- .github/workflows/filesys.yml | 35 ++++++++++++++++++++++++++++++++++ .github/workflows/grade.yml | 6 +++++- .github/workflows/threads.yml | 35 ++++++++++++++++++++++++++++++++++ .github/workflows/userprog.yml | 35 ++++++++++++++++++++++++++++++++++ .github/workflows/vm.yml | 35 ++++++++++++++++++++++++++++++++++ 5 files changed, 145 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/filesys.yml create mode 100644 .github/workflows/threads.yml create mode 100644 .github/workflows/userprog.yml create mode 100644 .github/workflows/vm.yml diff --git a/.github/workflows/filesys.yml b/.github/workflows/filesys.yml new file mode 100644 index 0000000..85cebf1 --- /dev/null +++ b/.github/workflows/filesys.yml @@ -0,0 +1,35 @@ +name: 'Qualification of filesys phase' + +on: + push: + pull_request: + branches: + - filesys + +jobs: + filesys: + name: 'Phase: File System' + runs-on: 'ubuntu-latest' + env: + phase: 'filesys' + steps: + - name: 'Cloning repository' + uses: 'actions/checkout@v2' + - name: Install dependencies + run: | + sudo apt update + sudo apt install qemu + sudo ln -s /usr/bin/qemu-system-i386 /usr/bin/qemu + - name: Pintos Checker + id: phase + uses: gbenm/pintos-checker@v1 + with: + phase: '${{ env.phase }}' + root: "." + utils_path: "utils" + make: "make clean && make && make grade" + - name: 'Show results' + uses: './.github/pintos-results' + with: + results: "${{ steps.phase.outputs.results }}" + phase: "${{ env.phase }}" \ No newline at end of file diff --git a/.github/workflows/grade.yml b/.github/workflows/grade.yml index 6620284..3be3434 100644 --- a/.github/workflows/grade.yml +++ b/.github/workflows/grade.yml @@ -1,6 +1,10 @@ name: 'Qualification of project phases' -on: [ "push", "pull_request" ] +on: + push: + pull_request: + branches: + - main jobs: threads: diff --git a/.github/workflows/threads.yml b/.github/workflows/threads.yml new file mode 100644 index 0000000..b197875 --- /dev/null +++ b/.github/workflows/threads.yml @@ -0,0 +1,35 @@ +name: 'Qualification of threads phase' + +on: + push: + pull_request: + branches: + - threads + +jobs: + threads: + name: 'Phase: Threads' + runs-on: 'ubuntu-latest' + env: + phase: 'threads' + steps: + - name: 'Cloning repository' + uses: 'actions/checkout@v2' + - name: Install dependencies + run: | + sudo apt update + sudo apt install qemu + sudo ln -s /usr/bin/qemu-system-i386 /usr/bin/qemu + - name: Pintos Checker + id: phase + uses: gbenm/pintos-checker@v1 + with: + phase: "${{ env.phase }}" + root: "." + utils_path: "utils" + make: "make clean && make && make grade" + - name: 'Show results' + uses: './.github/pintos-results' + with: + results: "${{ steps.phase.outputs.results }}" + phase: "${{ env.phase }}" \ No newline at end of file diff --git a/.github/workflows/userprog.yml b/.github/workflows/userprog.yml new file mode 100644 index 0000000..77829ac --- /dev/null +++ b/.github/workflows/userprog.yml @@ -0,0 +1,35 @@ +name: 'Qualification of userprog phase' + +on: + push: + pull_request: + branches: + - userprog + +jobs: + userprog: + name: 'Phase: User Programs' + runs-on: 'ubuntu-latest' + env: + phase: 'userprog' + steps: + - name: 'Cloning repository' + uses: 'actions/checkout@v2' + - name: Install dependencies + run: | + sudo apt update + sudo apt install qemu + sudo ln -s /usr/bin/qemu-system-i386 /usr/bin/qemu + - name: Pintos Checker + id: phase + uses: gbenm/pintos-checker@v1 + with: + phase: '${{ env.phase }}' + root: "." + utils_path: "utils" + make: "make clean && make && make grade" + - name: 'Show results' + uses: './.github/pintos-results' + with: + results: "${{ steps.phase.outputs.results }}" + phase: "${{ env.phase }}" \ No newline at end of file diff --git a/.github/workflows/vm.yml b/.github/workflows/vm.yml new file mode 100644 index 0000000..b05b6fc --- /dev/null +++ b/.github/workflows/vm.yml @@ -0,0 +1,35 @@ +name: 'Qualification of vm phase' + +on: + push: + pull_request: + branches: + - vm + +jobs: + vm: + name: 'Phase: Virtual Memory' + runs-on: 'ubuntu-latest' + env: + phase: 'vm' + steps: + - name: 'Cloning repository' + uses: 'actions/checkout@v2' + - name: Install dependencies + run: | + sudo apt update + sudo apt install qemu + sudo ln -s /usr/bin/qemu-system-i386 /usr/bin/qemu + - name: Pintos Checker + id: phase + uses: gbenm/pintos-checker@v1 + with: + phase: '${{ env.phase }}' + root: "." + utils_path: "utils" + make: "make clean && make && make grade" + - name: 'Show results' + uses: './.github/pintos-results' + with: + results: "${{ steps.phase.outputs.results }}" + phase: "${{ env.phase }}" \ No newline at end of file