Skip to content

Commit

Permalink
Add Builds for Static Linking MsQuic (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibanks authored Apr 4, 2022
1 parent 0b4b75c commit c7309d7
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 0 deletions.
101 changes: 101 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,38 @@ jobs:
run: /usr/local/lib/quicreach www.cloudflare.com
- name: quicreach www.google.com
run: /usr/local/lib/quicreach www.google.com
build-linux-openssl-static:
permissions:
contents: read
name: Build Linux (OpenSSL) Static
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@9b0655f430fba8c7001d4e38f8d4306db5c6e0ab
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5
with:
submodules: 'recursive'
- name: Generate
run: mkdir build && cd build && cmake -G 'Unix Makefiles' -DQUIC_BUILD_SHARED=off ..
- name: Build
run: cd build && cmake --build .
- name: Upload
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535
with:
name: bin-linux-openssl-static
path: |
build/**/quicreach
- name: Install
run: cd build && sudo cmake --install . --config Debug
- name: quicreach outlook-evergreen.office.com
run: /usr/local/lib/quicreach outlook-evergreen.office.com
- name: quicreach www.cloudflare.com
run: /usr/local/lib/quicreach www.cloudflare.com
- name: quicreach www.google.com
run: /usr/local/lib/quicreach www.google.com
build-windows-openssl:
permissions:
contents: read
Expand Down Expand Up @@ -80,6 +112,43 @@ jobs:
- name: quicreach www.google.com
run: |
& 'C:/Program Files/quicreach/lib/quicreach' www.google.com
build-windows-openssl-static:
permissions:
contents: read
name: Build Windows (OpenSSL) Static
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5
with:
submodules: 'recursive'
- name: Install Perl
uses: shogo82148/actions-setup-perl@20a7fcafc28850ff808cc2fa81e688fca4b3b47c
with:
perl-version: '5.34'
- name: Install NASM
uses: ilammy/setup-nasm@10788e307d96af7013172d66126322c70b22efb9
- name: Generate
run: mkdir build && cd build && cmake -G 'Visual Studio 17 2022' -A x64 -DQUIC_BUILD_SHARED=off -DQUIC_TLS=openssl ..
- name: Build
run: cd build && cmake --build .
- name: Upload
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535
with:
name: bin-windows-openssl
path: |
build/**/quicreach.exe
- name: Install
run: cd build && cmake --install . --config Debug
- name: quicreach outlook.office.com
run: |
& 'C:/Program Files/quicreach/lib/quicreach' outlook-evergreen.office.com
- name: quicreach www.cloudflare.com
run: |
& 'C:/Program Files/quicreach/lib/quicreach' www.cloudflare.com
- name: quicreach www.google.com
run: |
& 'C:/Program Files/quicreach/lib/quicreach' www.google.com
build-windows-schannel:
permissions:
contents: read
Expand Down Expand Up @@ -112,3 +181,35 @@ jobs:
- name: quicreach www.google.com
run: |
& 'C:/Program Files/quicreach/lib/quicreach' www.google.com
build-windows-schannel-static:
permissions:
contents: read
name: Build Windows (Schannel) Static
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5
with:
submodules: 'recursive'
- name: Generate
run: mkdir build && cd build && cmake -G 'Visual Studio 17 2022' -A x64 -DQUIC_BUILD_SHARED=off ..
- name: Build
run: cd build && cmake --build .
- name: Upload
uses: actions/upload-artifact@6673cd052c4cd6fcf4b4e6e60ea986c889389535
with:
name: bin-windows-schannel
path: |
build/**/quicreach.exe
- name: Install
run: cd build && cmake --install . --config Debug
- name: quicreach outlook.office.com
run: |
& 'C:/Program Files/quicreach/lib/quicreach' outlook-evergreen.office.com
- name: quicreach www.cloudflare.com
run: |
& 'C:/Program Files/quicreach/lib/quicreach' www.cloudflare.com
- name: quicreach www.google.com
run: |
& 'C:/Program Files/quicreach/lib/quicreach' www.google.com
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

add_executable(quicreach quicreach.cpp)
target_link_libraries(quicreach PRIVATE inc warnings msquic)
if (NOT BUILD_SHARED_LIBS)
target_link_libraries(quicreach PRIVATE base_link)
endif()
install(TARGETS quicreach EXPORT quicreach DESTINATION lib)

0 comments on commit c7309d7

Please sign in to comment.