Add DidOpen test (#160)
This commit is contained in:
31
.github/workflows/cmake.yml
vendored
31
.github/workflows/cmake.yml
vendored
@@ -62,17 +62,17 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup llvm binary
|
||||
if: matrix.os == 'ubuntu-24.04'
|
||||
run: |
|
||||
mkdir -p ./.llvm
|
||||
curl -L "https://github.com/clice-project/llvm-binary/releases/download/20.0.0/x86_64-linux-gnu-debug.tar.xz" | tar -xJ -C ./.llvm
|
||||
|
||||
- name: Setup llvm binary
|
||||
if: matrix.os == 'windows-2025'
|
||||
run: |
|
||||
curl -O -L "https://github.com/clice-project/llvm-binary/releases/download/20.0.0/x64-windows-msvc-release.7z"
|
||||
7z x x64-windows-msvc-release.7z "-o.llvm"
|
||||
|
||||
- name: Setup llvm binary
|
||||
if: matrix.os == 'ubuntu-24.04'
|
||||
run: |
|
||||
mkdir -p ./.llvm
|
||||
curl -L "https://github.com/clice-project/llvm-binary/releases/download/20.0.0/x86_64-linux-gnu-debug.tar.xz" | tar -xJ -C ./.llvm
|
||||
|
||||
- name: Setup llvm binary
|
||||
if: matrix.os == 'macos-15'
|
||||
@@ -84,6 +84,12 @@ jobs:
|
||||
if: matrix.os == 'windows-2025'
|
||||
uses: ilammy/msvc-dev-cmd@v1
|
||||
|
||||
- name: Build clice (release)
|
||||
if: matrix.os == 'windows-2025'
|
||||
run: |
|
||||
cmake --preset release
|
||||
cmake --build --preset release
|
||||
|
||||
- name: Build clice (debug)
|
||||
if: matrix.os == 'ubuntu-24.04'
|
||||
run: |
|
||||
@@ -97,16 +103,17 @@ jobs:
|
||||
cmake --preset debug
|
||||
cmake --build --preset debug -v
|
||||
|
||||
- name: Build clice (release)
|
||||
if: matrix.os == 'windows-2025'
|
||||
run: |
|
||||
cmake --preset release
|
||||
cmake --build --preset release
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: pip install pytest pytest-asyncio pytest-xdist
|
||||
|
||||
- name: Run tests
|
||||
if: matrix.os == 'windows-2025'
|
||||
run: |
|
||||
./build/bin/unit_tests.exe --test-dir="./tests/data" --resource-dir="./.llvm/lib/clang/20"
|
||||
pytest -s tests/integration --executable=./build/bin/clice.exe
|
||||
|
||||
- name: Run tests
|
||||
if: matrix.os == 'ubuntu-24.04' || matrix.os == 'macos-15'
|
||||
run: |
|
||||
./build/bin/unit_tests --test-dir="./tests/data" --resource-dir="./.llvm/lib/clang/20"
|
||||
pytest -s tests/integration --executable=./build/bin/clice
|
||||
|
||||
Reference in New Issue
Block a user