Skip to content

Commit

Permalink
build(actions): add coverage,fuzz actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Mar 2, 2024
1 parent 95a5855 commit 31d05cf
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on: workflow_dispatch
env:
PYTHONIOENCODING: utf-8
PYTHONLEGACYWINDOWSSTDIO: utf-8

jobs:
check-ubuntu-x86_64:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
- name: Checkout git repo
uses: actions/checkout@v2
with:
path: main
- name: Preparations
working-directory: main
run: |
# The 'submodules' option for actions/checkout@v2 doesn't
# seem to work. So we manually sync it just in case.
git submodule init
git submodule update
sudo apt update
sudo apt install -y docker
- name: Test
working-directory: main/compiler
run: |
./cov
zip -r coverage.zip ./bin/coverage
zip -r failed.zip ./bin/fuzz
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage
path: main/compiler/*.zip
36 changes: 36 additions & 0 deletions .github/workflows/fuzz-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on: workflow_dispatch
env:
PYTHONIOENCODING: utf-8
PYTHONLEGACYWINDOWSSTDIO: utf-8

jobs:
check-ubuntu-x86_64:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
- name: Checkout git repo
uses: actions/checkout@v2
with:
path: main
- name: Preparations
working-directory: main
run: |
# The 'submodules' option for actions/checkout@v2 doesn't
# seem to work. So we manually sync it just in case.
git submodule init
git submodule update
sudo apt update
sudo apt install -y docker
- name: Test
working-directory: main/compiler
run: |
./cov
zip -r llvm-fuzz-coverage.zip ./bin/coverage
zip -r llvm-fuzz-failed.zip ./bin/fuzz
- name: Upload fuzz-coverage
uses: actions/upload-artifact@v4
with:
name: fuzz-coverage
path: main/compiler/*.zip

0 comments on commit 31d05cf

Please sign in to comment.