Style updates

This commit is contained in:
olszomal 2024-11-05 14:49:52 +01:00 committed by Michał Trojnara
parent bc3e9e2172
commit 7d1b460dfe

View File

@ -167,27 +167,27 @@ jobs:
python.exe -c "import cryptography; print(f'Python3 cryptography version {cryptography.__version__}')" python.exe -c "import cryptography; print(f'Python3 cryptography version {cryptography.__version__}')"
- name: Configure CMake (Linux/macOS) - name: Configure CMake (Linux/macOS)
if: runner.os != 'Windows' if: runner.os != 'Windows'
run: | run: |
source venv/bin/activate source venv/bin/activate
cmake \ cmake \
-G "${{ matrix.generator }}" \ -G "${{matrix.generator}}" \
-S "${{ github.workspace }}" \ -S "${{github.workspace}}" \
-B "${{ github.workspace }}/build" \ -B "${{github.workspace}}/build" \
-DCMAKE_OSX_ARCHITECTURES=arm64 \ -DCMAKE_OSX_ARCHITECTURES=arm64 \
-DCMAKE_BUILD_TYPE="${{ env.BUILD_TYPE }}" \ -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" \
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/dist" -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/dist"
- name: Configure CMake (Windows) - name: Configure CMake (Windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
run: | run: |
.\venv\Scripts\Activate.ps1 .\venv\Scripts\Activate.ps1
cmake ` cmake `
-G "${{ matrix.generator }}" ` -G "${{matrix.generator}}" `
-S "${{ github.workspace }}" ` -S "${{github.workspace}}" `
-B "${{ github.workspace }}/build" ` -B "${{github.workspace}}/build" `
-DCMAKE_BUILD_TYPE="${{ env.BUILD_TYPE }}" ` -DCMAKE_BUILD_TYPE="${{env.BUILD_TYPE}}" `
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/dist" -DCMAKE_INSTALL_PREFIX="${{github.workspace}}/dist"
- name: Build - name: Build
run: cmake run: cmake
@ -205,14 +205,14 @@ jobs:
- name: Test (Linux/macOS) - name: Test (Linux/macOS)
if: runner.os != 'Windows' if: runner.os != 'Windows'
working-directory: ${{github.workspace}}/build working-directory: ${{github.workspace}}/build
run: | run: |
source ../venv/bin/activate source ../venv/bin/activate
ctest -C ${{env.BUILD_TYPE}} ctest -C ${{env.BUILD_TYPE}}
- name: Test (Windows) - name: Test (Windows)
if: runner.os == 'Windows' if: runner.os == 'Windows'
working-directory: ${{github.workspace}}/build working-directory: ${{github.workspace}}/build
run: | run: |
..\venv\Scripts\Activate.ps1 ..\venv\Scripts\Activate.ps1
ctest -C ${{env.BUILD_TYPE}} ctest -C ${{env.BUILD_TYPE}}