Fix clang builds #109
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: Build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Get CPM | |
| uses: neacsum/[email protected] | |
| with: | |
| name: cpm.exe | |
| url: https://github.com/neacsum/cpm/releases/latest/download/cpm.exe | |
| - name: Create dependencies directory | |
| shell: cmd | |
| run: | | |
| if not exist "build\.dep-cache" mkdir "build\.dep-cache" | |
| - name: Build dependencies | |
| run: cpm -v --proto https -r build\.dep-cache | |
| - name: Debug directory structure | |
| shell: cmd | |
| run: | | |
| dir build\.dep-cache\utpp | |
| dir build\.dep-cache\utpp\include | |
| if exist "build\.dep-cache\utpp\include\utpp\utpp.h" (echo Found utpp.h) else (echo utpp.h not found) | |
| - name: Create symlink for utpp | |
| shell: cmd | |
| run: | | |
| mklink /D build\.dep-cache\utpp-repo-src build\.dep-cache\utpp | |
| - name: Build and run tests | |
| shell: cmd | |
| run: | | |
| build.bat tests | |
| - name: Save tests result | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test_results | |
| path: build/exe/x64/debug/utf8_tests.xml |