Skip to content

Commit

Permalink
Reduce GHActions bloat (#369)
Browse files Browse the repository at this point in the history
* make prettieer

* new badges

* rename build to more specific
  • Loading branch information
ianfhunter authored Nov 9, 2022
1 parent dd486b7 commit 37c9e82
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 123 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/test_Go.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/test_JavaScript.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/test_Perl.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/test_R.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Test: C/Python"
name: "Core Tests"

on:
push:
Expand All @@ -8,7 +8,7 @@ on:

jobs:

build:
build_linux:

runs-on: ubuntu-latest

Expand Down Expand Up @@ -64,6 +64,3 @@ jobs:
run: make all
- name: Test
run: ./build/dice 20
#run: python3 -m pip install GNOLL
#- name: Run tests
# run: python3 -c "from gnoll.parser import roll;roll('1d20')"
19 changes: 0 additions & 19 deletions .github/workflows/test_julia.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/test_langs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: "Binding Tests"

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

jobs:
build_go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: go install
run: sudo apt install golang-go
- name: make go
run: make go

build_javascript:
runs-on: ubuntu-22.0
steps:
- uses: actions/checkout@v3
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "10.0"
- name: python deps
run: python3 -m pip install -r reqs/requirements.txt
- name: javascript prerequisites
run: |
sudo apt install clang-14 lld-14 llvm-14 nodejs libjs-d3 python3-numpy
sudo apt install nodejs llvm -y
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/e/emscripten/emscripten_3.1.6~dfsg-5_all.deb
sudo apt install ./emscripten_3.1.6~dfsg-5_all.deb
- name: make js
run: |
emcc -v
make js
node ./build/js/a.out.js 1d20
build_julia:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: go install
run: sudo apt install julia
- name: make julia
run: make julia


build_perl:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: perl install
run: sudo apt install perl
- name: make perl
run: make perl
- name: test perl
run: perl src/perl/example_application.pl


build_R:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- name: make r
run: make r
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: "Test: GNOLL from PyPi"
name: "Test: Packaging"

on:
push:
branches: [ main ]

jobs:
verify:
verify_pypi:
runs-on: ubuntu-latest

steps:
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# GNOLL
[![Build + Test](https://github.com/ianfhunter/GNOLL/actions/workflows/test_C_and_Python.yml/badge.svg)](https://github.com/ianfhunter/GNOLL/actions/workflows/test_C_and_Python.yml)
[![Test: Perl](https://github.com/ianfhunter/GNOLL/actions/workflows/test_Perl.yml/badge.svg)](https://github.com/ianfhunter/GNOLL/actions/workflows/test_Perl.yml)
[![Test: JavaScript](https://github.com/ianfhunter/GNOLL/actions/workflows/test_JavaScript.yml/badge.svg)](https://github.com/ianfhunter/GNOLL/actions/workflows/test_JavaScript.yml)
[![Test: Go](https://github.com/ianfhunter/GNOLL/actions/workflows/test_Go.yml/badge.svg)](https://github.com/ianfhunter/GNOLL/actions/workflows/test_Go.yml)
[![Test: Julia](https://github.com/ianfhunter/GNOLL/actions/workflows/test_julia.yml/badge.svg)](https://github.com/ianfhunter/GNOLL/actions/workflows/test_julia.yml)
[![Test: R](https://github.com/ianfhunter/GNOLL/actions/workflows/test_R.yml/badge.svg)](https://github.com/ianfhunter/GNOLL/actions/workflows/test_R.yml)

![C](https://img.shields.io/badge/c-%2300599C.svg?style=for-the-badge&logo=c&logoColor=white)
![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E)
![Julia](https://img.shields.io/badge/-Julia-9558B2?style=for-the-badge&logo=julia&logoColor=white)
![Perl](https://img.shields.io/badge/perl-%2339457E.svg?style=for-the-badge&logo=perl&logoColor=white)
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)
![R](https://img.shields.io/badge/r-%23276DC3.svg?style=for-the-badge&logo=r&logoColor=white)

[![Core Tests](https://github.com/ianfhunter/GNOLL/actions/workflows/test_core.yml/badge.svg)](https://github.com/ianfhunter/GNOLL/actions/workflows/test_core.yml)
[![Binding Tests](https://github.com/ianfhunter/GNOLL/actions/workflows/test_langs.yml/badge.svg)](https://github.com/ianfhunter/GNOLL/actions/workflows/test_langs.yml)

[![CodeFactor](https://www.codefactor.io/repository/github/ianfhunter/gnoll/badge)](https://www.codefactor.io/repository/github/ianfhunter/gnoll)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/90add1388135474a928b715ddbb071b4)](https://www.codacy.com/gh/ianfhunter/GNOLL/dashboard?utm_source=github.com&utm_medium=referral&utm_content=ianfhunter/GNOLL&utm_campaign=Badge_Grade)
Expand Down

0 comments on commit 37c9e82

Please sign in to comment.