Skip to content

Commit

Permalink
Set up workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
baglayan committed Mar 24, 2024
1 parent afbbd64 commit f958ba4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: C Compile

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install build-essential

- name: Compile
run: make
23 changes: 23 additions & 0 deletions .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: C Compile

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install build-essential

- name: Static Analysis with cppcheck
run: |
sudo apt-get install cppcheck
cppcheck --enable=all --suppress=missingIncludeSystem .
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# hwsh

[![Compile](https://github.com/baglayan/os-shell-homework/actions/workflows/compile.yml/badge.svg)](https://github.com/baglayan/os-shell-homework/actions/workflows/compile.yml)
[![Lint with cppcheck](https://github.com/baglayan/os-shell-homework/actions/workflows/cppecheck.yml/badge.svg)](https://github.com/baglayan/os-shell-homework/actions/workflows/cppcheck.yml)

Created for BLG312E Computer Operating Systems Spring 2024 course, as the first homework

This assignment involves implementing a command-line shell that can be run in batch mode. The shell is initiated by specifying a batch file on its command line, which contains a list of commands to be executed. Each line in the batch file can contain multiple commands separated by `;` or `|`. Commands separated by `;` should be run simultaneously or concurrently, while commands separated by `|` should be executed with the output of the preceding commands piped as input to the subsequent commands.
Expand Down

0 comments on commit f958ba4

Please sign in to comment.