-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (59 loc) · 1.7 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: test
on:
push:
branches:
- 'master'
pull_request:
jobs:
linux:
strategy:
matrix:
agda: [2.6.4]
hackageDate: ["2023-12-01"]
hackageTime: ["20:29:20"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: ~/.cabal/store
key: "cabal-${{ runner.os }}-${{ matrix.agda }}-${{ matrix.hackageDate }}-${{ matrix.hackageTime }}"
- name: install cabal
run: sudo apt-get install -y cabal-install
- name: cabal update
run: cabal v2-update "hackage.haskell.org,${{ matrix.hackageDate }}T${{ matrix.hackageTime }}Z"
- name: cabal install
run: |
cabal install --lib text bytestring scientific vector aeson --package-env .
cabal install --allow-newer Agda-${{ matrix.agda }}
- name: check targets
run: |
~/.local/bin/agda Everything.agda
- name: build executables
run: |
~/.local/bin/agda --compile PrettyPrinter.agda
~/.local/bin/agda --compile Interpreter.agda
- name: clone Luau
uses: actions/checkout@v2
with:
repository: Roblox/luau
ref: master
path: luau
- name: cmake configure
run: |
mkdir -p build
cd build
cmake ../luau
- name: cmake build luau-ast
run: |
cmake --build ./build --target Luau.Ast.CLI -j 3
- name: run tests
run: |
mkdir test-failures
python tests.py -l ./build/luau-ast --write-diff-failures --diff-failure-location test-failures/
- uses: actions/upload-artifact@v2
if: failure()
with:
name: test failures
path: test-failures
retention-days: 5