From 046972a193b6c4aabedafd142ba7f7f85451a259 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Mon, 20 Nov 2023 17:27:40 +0800 Subject: [PATCH] add llvm build test --- .github/workflows/build-llvm-test.yml | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-llvm-test.yml diff --git a/.github/workflows/build-llvm-test.yml b/.github/workflows/build-llvm-test.yml new file mode 100644 index 0000000000..ff19096804 --- /dev/null +++ b/.github/workflows/build-llvm-test.yml @@ -0,0 +1,36 @@ +name: Linux Build CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-20.04 + strategy: + matrix: + configuration: ['release'] + platform: ['x64'] + steps: + - uses: actions/checkout@v3 + with: + submodules: 'true' + fetch-depth: '0' + - name: configure + run: | + mkdir -p build + cmake -S . -B build -G "Ninja Multi-Config" -DSLANG_USE_BINARY_SLANG_LLVM=0 -DSLANG_USE_SYSTEM_LLVM=0 + env: + CC: gcc-10 + CXX: g++-10 + - name: build + run: | + cmake --build build --config Release -j --target slang-llvm + - uses: actions/upload-artifact@v3 + with: + name: slang-llvm-${{matrix.configuration}}-${{matrix.platform}} + path: | + build/Release/lib/libslang-llvm.so