| 1 | name: Build for Windows (Cygwin) |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | |
| 6 | jobs: |
| 7 | build: |
| 8 | runs-on: windows-latest |
| 9 | steps: |
| 10 | - uses: actions/[email protected] |
| 11 | - uses: cygwin/[email protected] |
| 12 | with: |
| 13 | packages: gcc-core make binutils libssl-devel xmlto asciidoc docbook-xml45 |
| 14 | - name: Build |
| 15 | shell: bash {0} |
| 16 | run: make && make docs |
| 17 | - name: Check |
| 18 | shell: bash {0} |
| 19 | run: ldd proxytunnel.exe | awk '{print $3}' | grep -vi windows/system32 | sort | uniq |
| 20 | - name: Upload CI Artifact |
| 21 | uses: actions/upload-artifact@v4 |
| 22 | with: |
| 23 | name: proxytunnel-${{ github.sha }}-x86_64-windows-cygwin |
| 24 | path: proxytunnel.exe docs/proxytunnel.1* |