Split workflows for making status badge for each language

This commit is contained in:
Koichi Nakamura 2021-12-06 21:29:26 +09:00
parent f322404f59
commit 4c3e6e757c
3 changed files with 35 additions and 6 deletions

View file

@ -1,4 +1,4 @@
name: runtests name: testing c
on: on:
pull_request: pull_request:
@ -6,14 +6,11 @@ on:
- main - main
paths-ignore: ['README.md', 'LICENSE', '.gitignore'] paths-ignore: ['README.md', 'LICENSE', '.gitignore']
jobs: jobs:
runtests: runtests-c:
strategy:
matrix:
impl: ['i386-linux-handwritten', 'c', 'python']
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: run tests - name: run tests
run: | run: |
make ${{ matrix.impl }} make c
./planck < bootstrap.fs runtests.fs ./planck < bootstrap.fs runtests.fs

View file

@ -0,0 +1,16 @@
name: testing i386-linux-handwritten
on:
pull_request:
branches:
- main
paths-ignore: ['README.md', 'LICENSE', '.gitignore']
jobs:
runtests-i386-linux-handwritten:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: run tests
run: |
make i386-linux-handwritten
./planck < bootstrap.fs runtests.fs

16
.github/workflows/runtests-python.yaml vendored Normal file
View file

@ -0,0 +1,16 @@
name: testing python
on:
pull_request:
branches:
- main
paths-ignore: ['README.md', 'LICENSE', '.gitignore']
jobs:
runtests-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: run tests
run: |
make python
./planck < bootstrap.fs runtests.fs