Skip to content

Commit

Permalink
Merge pull request #519 from binpash/badges
Browse files Browse the repository at this point in the history
Badges Table and CI updates
  • Loading branch information
dkarnikis authored Mar 30, 2022
2 parents 6394c02 + 44359ba commit 4f89782
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build
on:
pull_request_target:
types: [assigned, opened, synchronize, reopened, ready_for_review]
# the paths that trigger the ci
paths:
- compiler/**
- runtime/**
- evaluation/**
- annotations/**
push:
branches:
- main
- future
paths:
- compiler/**
- runtime/**
- evaluation/**
- annotations/**

# Jobs section
jobs:
build-pash:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Building Pash
run: |
set -e
sudo touch /.githubenv
# install the system deps and pash the environment
sudo -E bash scripts/distro-deps.sh -o
# install pash
sudo -E bash scripts/setup-pash.sh -o
export PASH_TOP=$PWD
export PATH=$PATH:$PASH_TOP
# run a simple command
$PASH_TOP/pa.sh -c 'echo done'
File renamed without changes.
19 changes: 17 additions & 2 deletions .github/workflows/main.yml → .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ on:
- runtime/**
- evaluation/**
- annotations/**
push:
branches:
- main
- future
paths:
- compiler/**
- runtime/**
- evaluation/**
- annotations/**

# Jobs section
jobs:
Pash-Tests:
Expand All @@ -22,7 +32,7 @@ jobs:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Running-Pash-Benchmarks
- name: Running Correctness Tests
run: |
sudo touch /.githubenv
# install the system deps and pash the environment
Expand All @@ -49,13 +59,18 @@ jobs:
with:
script: |
let body = `${{ env.VERSION }}`
console.log(context)
// if we are directly pushing on main/future, we cannot push comments -> exit
if (context.eventName === "push" && (context.ref === "refs/heads/main" || context.ref === "refs/heads/future")) {
return 0;
}
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: body,
})
- name: Exit-code
- name: Exit Code
run: |
# check if everything executed without errors
cd scripts/workflow && bash exit_code.sh
File renamed without changes.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
> _A system for parallelizing POSIX shell scripts._
> _Hosted by the [Linux Foundation](https://linuxfoundation.org/press-release/linux-foundation-to-host-the-pash-project-accelerating-shell-scripting-with-automated-parallelization-for-industrial-use-cases/)._
[![Tests](https://github.com/binpash/pash/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/binpash/pash/actions/workflows/main.yml)
| Service | Master | Develop |
| :--- | :----: | :----: |
| Tests | [![Tests](https://github.com/binpash/pash/actions/workflows/tests.yaml/badge.svg?branch=main&event=push)](https://github.com/dkarnikis/pash/actions/workflows/tests.yaml) | [![Tests](https://github.com/dkarnikis/pash/actions/workflows/tests.yaml/badge.svg?branch=future&event=push)](https://github.com/dkarnikis/pash/actions/workflows/tests.yaml) |
| Build | [![Build](https://github.com/binpash/pash/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/dkarnikis/pash/actions/workflows/build.yaml) | [![Build](https://github.com/dkarnikis/pash/actions/workflows/build.yaml/badge.svg?branch=future&event=push)](https://github.com/dkarnikis/pash/actions/workflows/build.yaml) |
| Pages | [![DeployPublish](https://github.com/binpash/web/actions/workflows/pages.yaml/badge.svg)](https://github.com/binpash/web/actions/workflows/pages.yaml) | [![DeployPublish](https://github.com/binpash/web/actions/workflows/pages.yaml/badge.svg)](https://github.com/binpash/web/actions/workflows/pages.yaml) |


Quick Jump: [Running PaSh](#running-pash) | [Installation](#installation) | [Testing](#testing) | [Repo Structure](#repo-structure) | [Community & More](#community--more) | [Citing](#citing)

Expand Down

0 comments on commit 4f89782

Please sign in to comment.