2022-02-09 08:26:58 +08:00
|
|
|
name: prototyping
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
2022-02-12 04:38:35 +08:00
|
|
|
- 'prototyping-*'
|
2022-02-09 08:26:58 +08:00
|
|
|
paths:
|
|
|
|
- '.github/workflows/**'
|
|
|
|
- 'prototyping/**'
|
2022-02-16 06:24:51 +08:00
|
|
|
- 'Analysis/**'
|
|
|
|
- 'Ast/**'
|
|
|
|
- 'CLI/Ast.cpp'
|
|
|
|
- 'CLI/FileUtils.*'
|
2022-02-09 08:26:58 +08:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/**'
|
|
|
|
- 'prototyping/**'
|
2022-02-16 06:24:51 +08:00
|
|
|
- 'Analysis/**'
|
|
|
|
- 'Ast/**'
|
|
|
|
- 'CLI/Ast.cpp'
|
|
|
|
- 'CLI/FileUtils.*'
|
2022-02-09 08:26:58 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
agda: [2.6.2.1]
|
|
|
|
name: prototyping
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.cabal/store
|
|
|
|
key: prototyping-${{ runner.os }}-${{ matrix.agda }}
|
|
|
|
- name: install cabal
|
|
|
|
run: sudo apt-get install -y cabal-install
|
|
|
|
- name: cabal update
|
|
|
|
working-directory: prototyping
|
|
|
|
run: cabal update
|
|
|
|
- name: cabal install
|
|
|
|
working-directory: prototyping
|
|
|
|
run: |
|
|
|
|
cabal install Agda-${{ matrix.agda }}
|
|
|
|
cabal install --lib scientific --package-env .
|
|
|
|
cabal install --lib vector --package-env .
|
|
|
|
cabal install --lib aeson --package-env .
|
|
|
|
- name: check examples
|
|
|
|
working-directory: prototyping
|
|
|
|
run: ~/.cabal/bin/agda Examples.agda
|
2022-02-10 07:14:29 +08:00
|
|
|
- name: build executables
|
2022-02-09 08:26:58 +08:00
|
|
|
working-directory: prototyping
|
2022-02-10 07:14:29 +08:00
|
|
|
run: |
|
|
|
|
~/.cabal/bin/agda --compile PrettyPrinter.agda
|
|
|
|
~/.cabal/bin/agda --compile Interpreter.agda
|
2022-02-09 08:26:58 +08:00
|
|
|
- name: cmake configure
|
|
|
|
run: cmake .
|
|
|
|
- name: cmake build luau-ast
|
|
|
|
run: cmake --build . --target Luau.Ast.CLI
|
|
|
|
- name: run smoketest
|
|
|
|
working-directory: prototyping
|
2022-02-10 07:14:29 +08:00
|
|
|
run: |
|
|
|
|
../luau-ast Examples/SmokeTest.lua | ./PrettyPrinter > Examples/SmokeTestOutput.lua
|
|
|
|
../luau-ast Examples/SmokeTest.lua | ./Interpreter
|
2022-02-09 08:26:58 +08:00
|
|
|
- name: diff smoketest
|
|
|
|
working-directory: prototyping
|
|
|
|
run: diff Examples/SmokeTest.lua Examples/SmokeTestOutput.lua
|