Skip to content

Commit 3c10194

Browse files
authored
Merge pull request #95 from nishant-sachdeva/llvm17lit
Moving tests to LIT and added docs.
2 parents 4b7cfe6 + d6ca302 commit 3c10194

File tree

18 files changed

+2839
-29
lines changed

18 files changed

+2839
-29
lines changed

.github/workflows/doxygen.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Doxygen Action
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
branches: [ main ]
10+
11+
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
# This workflow contains a single job called "build"
16+
build:
17+
# The type of runner that the job will run on
18+
runs-on: ubuntu-latest
19+
20+
# Steps represent a sequence of tasks that will be executed as part of the job
21+
steps:
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v2
24+
25+
- name: Doxygen Action
26+
uses: mattnotmitt/[email protected]
27+
with:
28+
# Path to Doxyfile
29+
doxyfile-path: "./Doxyfile" # default is ./Doxyfile
30+
# Working directory
31+
working-directory: "." # default is .
32+
33+
- name: Deploy
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
37+
# Default Doxyfile build documentation to html directory.
38+
# Change the directory if changes in Doxyfile
39+
publish_dir: ./html

.github/workflows/publish-docs.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: GitHub Wiki upload
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths: [docs/**, .github/workflows/publish-docs.yml]
8+
9+
concurrency:
10+
group: wiki
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: write
15+
16+
jobs:
17+
wiki:
18+
name: Publish to GitHub Wiki
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout Code
22+
uses: actions/checkout@v4
23+
with:
24+
repository: ${{github.repository}}
25+
path: ${{github.repository}}
26+
27+
- name: Checkout Wiki
28+
uses: actions/checkout@v4
29+
with:
30+
repository: ${{github.repository}}.wiki
31+
path: ${{github.repository}}.wiki
32+
33+
- name: Push to wiki
34+
run: |
35+
set -e
36+
cd $GITHUB_WORKSPACE/${{github.repository}}.wiki
37+
cp -r $GITHUB_WORKSPACE/${{github.repository}}/docs/* .
38+
git config --local user.email "[email protected]"
39+
git config --local user.name "GitHub Action"
40+
git add .
41+
git diff-index --quiet HEAD || git commit -m "action: wiki sync" && git push

.github/workflows/publish.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ jobs:
1414
runs-on: ubuntu-20.04
1515

1616
steps:
17+
- name: Install libzstd-dev
18+
run: sudo apt-get install -y libzstd-dev
19+
- name: Install LIT and Filecheck
20+
run: |
21+
sudo python3 -m pip install lit
22+
sudo python3 -m pip install filecheck
1723
- name: Install LLVM-17
1824
run: |
19-
sudo apt-get install -y libzstd-dev
2025
wget https://apt.llvm.org/llvm.sh
2126
sudo bash llvm.sh 17
2227
- uses: actions/checkout@v2

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
steps:
2020
- name: Install libzstd-dev
2121
run: sudo apt-get install libzstd-dev
22+
- name: Install LIT and Filecheck
23+
run: |
24+
sudo python3 -m pip install lit
25+
sudo python3 -m pip install filecheck
2226
- name: Install LLVM-17
2327
run: |
2428
wget https://apt.llvm.org/llvm.sh
@@ -41,4 +45,4 @@ jobs:
4145
- name: make
4246
run: cd build && make -j8
4347
- name: Run-tests
44-
run: cd build && ulimit -s unlimited && make verify-all
48+
run: cd build && ulimit -s unlimited && make check

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ experiments/*/output
66
seed_embeddings/triplets.txt
77
seed_embeddings/preprocessed/*
88
.cache/
9+
10+
html
11+
latex

0 commit comments

Comments
 (0)