Skip to content

Commit

Permalink
separate actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedosama07 committed May 6, 2024
1 parent fd68afa commit 7805994
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/filesys.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
6 changes: 5 additions & 1 deletion .github/workflows/grade.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: 'Qualification of project phases'

on: [ "push", "pull_request" ]
on:
push:
pull_request:
branches:
- main

jobs:
threads:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/threads.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
35 changes: 35 additions & 0 deletions .github/workflows/userprog.yml
Original file line number Diff line number Diff line change
@@ -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 }}"
35 changes: 35 additions & 0 deletions .github/workflows/vm.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit 7805994

Please sign in to comment.