leo/.github/workflows/acl2.yml

57 lines
1.4 KiB
YAML
Raw Normal View History

2021-07-30 15:36:43 +03:00
name: Leo-ACL2
on:
push:
env:
RUST_BACKTRACE: 1
jobs:
acl2:
name: leo-acl2
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
2021-08-17 10:44:44 +03:00
# - name: Install Rust
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
2021-07-30 15:36:43 +03:00
2021-08-17 10:44:44 +03:00
# - name: Prepare tgc
# run: |
# cd acl2 && gunzip leo-acl2.lx86cl64.gz
# ls -la .
2021-07-30 15:36:43 +03:00
2021-08-17 10:44:44 +03:00
# - name: Generate asts
# run: |
# cargo run -p leo-test-framework --bin tgc
2021-07-30 15:36:43 +03:00
2021-08-17 13:14:00 +03:00
- name: Pull the tgc executable
2021-07-30 15:36:43 +03:00
run: |
2021-08-17 13:15:00 +03:00
mkdir tmp;
2021-08-17 13:14:00 +03:00
cd tmp;
curl -s https://api.github.com/repos/AleoHQ/leo-acl2-bin/latest | \
sed -n 's/.*"tarball_url": "\(.*\)",.*/\1/p' | \
xargs -n1 wget -O - -q | \
tar -xz --strip-components=1
2021-08-17 10:44:44 +03:00
ls -la
2021-08-17 13:14:00 +03:00
tree .
2021-08-17 10:44:44 +03:00
# - name: Run tgc over the asts
# run: |
# ARRAY=();
# for dir in `ls tmp/tgc`;
# do
# cd tmp/tgc/$dir; # enter the directory
# ./../../../acl2/tgc canonicalization initial_ast.json canonicalization_ast.json canonicalization-theorem.lisp || ARRAY+=("$dir");
# cd ../../..
# done;
# echo "Failures:";
# for i in ${ARRAY[@]};
# do
# echo $i;
# done;