Debug WIP: Reusable workflows

This commit is contained in:
Allan Jeremy 2022-05-26 13:58:39 +03:00
parent 9c3c881587
commit bd960d6640
3 changed files with 58 additions and 24 deletions

View file

@ -29,22 +29,25 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: "./.github/workflows/setup-luau"
with:
token: "${{ secrets.BENCH_GITHUB_TOKEN }}"
runsOn: ${{ matrix.os }}
# - uses: actions/checkout@v3
# with:
# token: "${{ secrets.BENCH_GITHUB_TOKEN }}"
- name: Build Luau
run: make config=release luau luau-analyze
# - name: Build Luau
# run: make config=release luau luau-analyze
- uses: actions/setup-python@v3
with:
python-version: "3.9"
architecture: "x64"
# - uses: actions/setup-python@v3
# with:
# python-version: "3.9"
# architecture: "x64"
- name: Install python dependencies
run: |
python -m pip install requests
python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
# - name: Install python dependencies
# run: |
# python -m pip install requests
# python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
- name: Install valgrind
run: |

View file

@ -29,20 +29,23 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Build Luau
run: make config=release luau luau-analyze
- uses: actions/setup-python@v3
- uses: "./.github/workflows/setup-luau"
with:
python-version: "3.9"
architecture: "x64"
runsOn: ${{ matrix.os }}
# - uses: actions/checkout@v3
- name: Install python dependencies
run: |
python -m pip install requests
python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
# - name: Build Luau
# run: make config=release luau luau-analyze
# - uses: actions/setup-python@v3
# with:
# python-version: "3.9"
# architecture: "x64"
# - name: Install python dependencies
# run: |
# python -m pip install requests
# python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
- name: Run benchmark
run: |

28
.github/workflows/setup-luau.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Setup Luau
on:
workflow_call:
inputs:
runsOn:
required: true
type: string
jobs:
setup-luau:
name: Setup Luau
runs-on: ${{ inputs.runsOn }}
steps:
- uses: actions/checkout@v3
- name: Build Luau
run: make config=release luau luau-analyze
- uses: actions/setup-python@v3
with:
python-version: "3.9"
architecture: "x64"
- name: Install python dependencies
run: |
python -m pip install requests
python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose