From 58688c8090afea95a92a147e26ad0392c1bfef14 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 19 Jun 2022 20:04:56 -0700 Subject: feat: initial commit --- .github/workflows/check.yaml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/check.yaml (limited to '.github/workflows') diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml new file mode 100644 index 0000000..3c3be63 --- /dev/null +++ b/.github/workflows/check.yaml @@ -0,0 +1,43 @@ +name: Check โœ… + +on: + workflow_dispatch: + push: + paths: + - "*" + pull_request: + paths: + - "*" + +jobs: + check: + name: Check โœ… + runs-on: ubuntu-latest + steps: + - name: Checkout ๐Ÿ›’ + uses: actions/checkout@v3 + + - name: Cache LLVM โš™ + id: cache-llvm + uses: actions/cache@v2 + with: + path: ./llvm + key: llvm-12.0.1 + + - name: LLVM ๐Ÿงฐ + uses: KyleMayes/install-llvm-action@v1 + with: + version: "12.0.1" + cached: ${{ steps.cache-llvm.outputs.cache-hit }} + + - name: Python, Ninja, & Meson ๐Ÿ— + run: | + sudo apt-get update + sudo apt-get install -y python3 python3-pip python3-setuptools python3-wheel ninja-build clang-tidy + pip3 install meson + + - name: Test ๐Ÿงช + run: | + CXX=clang meson build-clang + cd build-clang + ninja test -- cgit v1.2.3