Skip to content

Commit 31d05cf

Browse files
committed
build(actions): add coverage,fuzz actions
1 parent 95a5855 commit 31d05cf

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

.github/workflows/coverage.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on: workflow_dispatch
2+
env:
3+
PYTHONIOENCODING: utf-8
4+
PYTHONLEGACYWINDOWSSTDIO: utf-8
5+
6+
jobs:
7+
check-ubuntu-x86_64:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-22.04]
12+
steps:
13+
- name: Checkout git repo
14+
uses: actions/checkout@v2
15+
with:
16+
path: main
17+
- name: Preparations
18+
working-directory: main
19+
run: |
20+
# The 'submodules' option for actions/checkout@v2 doesn't
21+
# seem to work. So we manually sync it just in case.
22+
git submodule init
23+
git submodule update
24+
sudo apt update
25+
sudo apt install -y docker
26+
- name: Test
27+
working-directory: main/compiler
28+
run: |
29+
./cov
30+
zip -r coverage.zip ./bin/coverage
31+
zip -r failed.zip ./bin/fuzz
32+
- name: Upload coverage
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: coverage
36+
path: main/compiler/*.zip

.github/workflows/fuzz-coverage.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on: workflow_dispatch
2+
env:
3+
PYTHONIOENCODING: utf-8
4+
PYTHONLEGACYWINDOWSSTDIO: utf-8
5+
6+
jobs:
7+
check-ubuntu-x86_64:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-22.04]
12+
steps:
13+
- name: Checkout git repo
14+
uses: actions/checkout@v2
15+
with:
16+
path: main
17+
- name: Preparations
18+
working-directory: main
19+
run: |
20+
# The 'submodules' option for actions/checkout@v2 doesn't
21+
# seem to work. So we manually sync it just in case.
22+
git submodule init
23+
git submodule update
24+
sudo apt update
25+
sudo apt install -y docker
26+
- name: Test
27+
working-directory: main/compiler
28+
run: |
29+
./cov
30+
zip -r llvm-fuzz-coverage.zip ./bin/coverage
31+
zip -r llvm-fuzz-failed.zip ./bin/fuzz
32+
- name: Upload fuzz-coverage
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: fuzz-coverage
36+
path: main/compiler/*.zip

0 commit comments

Comments
 (0)