From 4c3e6e757c30e9f77ae9317c0da3e4d8f4ee1abb Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Mon, 6 Dec 2021 21:29:26 +0900 Subject: [PATCH] Split workflows for making status badge for each language --- .../workflows/{runtests.yaml => runtests-c.yaml} | 9 +++------ .../runtests-i386-linux-handwritten.yaml | 16 ++++++++++++++++ .github/workflows/runtests-python.yaml | 16 ++++++++++++++++ 3 files changed, 35 insertions(+), 6 deletions(-) rename .github/workflows/{runtests.yaml => runtests-c.yaml} (64%) create mode 100644 .github/workflows/runtests-i386-linux-handwritten.yaml create mode 100644 .github/workflows/runtests-python.yaml diff --git a/.github/workflows/runtests.yaml b/.github/workflows/runtests-c.yaml similarity index 64% rename from .github/workflows/runtests.yaml rename to .github/workflows/runtests-c.yaml index f19963f..d641d89 100644 --- a/.github/workflows/runtests.yaml +++ b/.github/workflows/runtests-c.yaml @@ -1,4 +1,4 @@ -name: runtests +name: testing c on: pull_request: @@ -6,14 +6,11 @@ on: - main paths-ignore: ['README.md', 'LICENSE', '.gitignore'] jobs: - runtests: - strategy: - matrix: - impl: ['i386-linux-handwritten', 'c', 'python'] + runtests-c: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: run tests run: | - make ${{ matrix.impl }} + make c ./planck < bootstrap.fs runtests.fs diff --git a/.github/workflows/runtests-i386-linux-handwritten.yaml b/.github/workflows/runtests-i386-linux-handwritten.yaml new file mode 100644 index 0000000..91bfc8e --- /dev/null +++ b/.github/workflows/runtests-i386-linux-handwritten.yaml @@ -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 diff --git a/.github/workflows/runtests-python.yaml b/.github/workflows/runtests-python.yaml new file mode 100644 index 0000000..edc3310 --- /dev/null +++ b/.github/workflows/runtests-python.yaml @@ -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