Skip to content

Commit

Permalink
Github actions (#54)
Browse files Browse the repository at this point in the history
* gh actions

* install clang-18

* move build -> test

* change method of clang installation
  • Loading branch information
ClaytonKnittel authored Oct 28, 2024
1 parent 05f4891 commit 368b5fe
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Format

on:
push:
branches:
- ckmalloc
pull_request:
jobs:
check-format:
runs-on: ubuntu-latest
strategy:
matrix:
path:
- "src"
- "proto"
steps:
- name: Check out ckmalloc
uses: actions/checkout@v4
with:
path: ckmalloc
submodules: recursive
- name: clang-format style check
uses: jidicula/[email protected]
with:
clang-format-version: "17"
check-path: ${{ matrix.path }}
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Test

on:
push:
branches:
- ckmalloc
pull_request:
jobs:
check-build:
runs-on: ubuntu-latest
steps:
- name: Check out ckmalloc
uses: actions/checkout@v4
with:
path: ckmalloc
submodules: recursive
- uses: bazelbuild/setup-bazelisk@v3
- name: Mount bazel cache
uses: actions/cache@v4
with:
path: "~/.cache/bazel"
key: bazel
- name: Install clang
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 18
- name: Test
working-directory: ckmalloc
run: |
bazel test --config=test //...

0 comments on commit 368b5fe

Please sign in to comment.