Trigger CI #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Debug va_arg_concat" | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| debug: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| name: Debug va_arg_concat (${{ matrix.os }}) | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup LLVM | |
| uses: ZhongRuoyu/setup-llvm@v0 | |
| with: | |
| llvm-version: 22 | |
| - name: Configure | |
| run: | | |
| mkdir build && cd build | |
| cmake -DCMAKE_BUILD_TYPE=Release -GNinja .. | |
| - name: Build cpp2rust | |
| run: ninja cpp2rust | |
| working-directory: build | |
| - name: Run cpp2rust on va_arg_concat.c (unsafe) | |
| run: | | |
| echo "=== OS: ${{ matrix.os }} / model: unsafe ===" | |
| ./cpp2rust/cpp2rust \ | |
| -file tests/unit/va_arg_concat.c \ | |
| -model unsafe \ | |
| -o /tmp/va_arg_concat.unsafe.rs | |
| echo "--- generated Rust (unsafe) ---" | |
| cat /tmp/va_arg_concat.unsafe.rs |