| 1 | name: windows |
| 2 | |
| 3 | permissions: |
| 4 | contents: read |
| 5 | |
| 6 | on: [push, pull_request] |
| 7 | |
| 8 | jobs: |
| 9 | windows-msvc: |
| 10 | runs-on: windows-2022 |
| 11 | steps: |
| 12 | - name: 'Checkout' |
| 13 | uses: actions/checkout@v6 |
| 14 | - name: 'Setup Python' |
| 15 | uses: actions/setup-python@v6 |
| 16 | with: |
| 17 | python-version: '3.x' |
| 18 | - name: 'Install Meson' |
| 19 | run: pip install meson |
| 20 | - name: 'Enter DevShell' |
| 21 | run: '.github\workflows\EnterDevShell.ps1 ${{ inputs.architecture }}' |
| 22 | shell: pwsh |
| 23 | - name: 'Configure with meson' |
| 24 | run: meson setup _build -D werror=true |
| 25 | - name: 'Build' |
| 26 | run: meson compile -C _build |
| 27 | - name: 'Install' |
| 28 | run: meson install -C _build |
| 29 | |
| 30 | windows-msvc-debug: |
| 31 | runs-on: windows-2022 |
| 32 | steps: |
| 33 | - name: 'Checkout' |
| 34 | uses: actions/checkout@v6 |
| 35 | - name: 'Setup Python' |
| 36 | uses: actions/setup-python@v6 |
| 37 | with: |
| 38 | python-version: '3.x' |
| 39 | - name: 'Install Meson' |
| 40 | run: pip install meson |
| 41 | - name: 'Enter DevShell' |
| 42 | run: '.github\workflows\EnterDevShell.ps1 ${{ inputs.architecture }}' |
| 43 | shell: pwsh |
| 44 | - name: 'Configure with meson' |
| 45 | run: meson setup _build -D werror=true -D buildtype=debug |
| 46 | - name: 'Build' |
| 47 | run: meson compile -C _build |
| 48 | - name: 'Install' |
| 49 | run: meson install -C _build |
| 50 | |
| 51 | windows-mingw: |
| 52 | runs-on: windows-2022 |
| 53 | env: |
| 54 | CC: gcc |
| 55 | defaults: |
| 56 | run: |
| 57 | shell: msys2 {0} |
| 58 | steps: |
| 59 | - name: 'Checkout' |
| 60 | uses: actions/checkout@v6 |
| 61 | - name: 'Setup MSYS2' |
| 62 | uses: msys2/setup-msys2@v2 |
| 63 | with: |
| 64 | msystem: mingw64 |
| 65 | update: false |
| 66 | pacboy: >- |
| 67 | toolchain:p |
| 68 | meson:p |
| 69 | - name: 'Enter DevShell' |
| 70 | run: '.github\workflows\EnterDevShell.ps1 ${{ inputs.architecture }}' |
| 71 | shell: pwsh |
| 72 | - name: 'Configure' |
| 73 | run: meson setup _build -D werror=true |
| 74 | - name: 'Build' |
| 75 | run: meson compile -C _build |
| 76 | - name: 'Install' |
| 77 | run: meson install -C _build |