-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
137 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: StaticLinking | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'ansible/**' | ||
- 'doc/**' | ||
- 'demo/**' | ||
- 'scripts/**' | ||
- 'g3proxy/doc/**' | ||
- 'g3tiles/doc/**' | ||
branches: | ||
- 'master' | ||
- 'rel/**' | ||
- 'lts/**' | ||
pull_request: | ||
branches: | ||
- 'master' | ||
- 'rel/**' | ||
- 'lts/**' | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CROSS_COMMON_FEATURES: quic,vendored-c-ares,hickory | ||
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS: -C target-feature=+crt-static | ||
|
||
jobs: | ||
musl: | ||
name: musl | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
feature: | ||
- vendored-openssl | ||
- vendored-tongsuo | ||
- vendored-aws-lc | ||
- vendored-boringssl | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install stable toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: x86_64-unknown-linux-musl | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install capnproto musl-tools | ||
- name: Cargo build | ||
run: cargo build --target=x86_64-unknown-linux-musl --no-default-features --features ${{ matrix.feature }},$CROSS_COMMON_FEATURES | ||
msvc: | ||
name: msvc | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
feature: | ||
- vendored-openssl | ||
- vendored-tongsuo | ||
- vendored-aws-lc | ||
- vendored-boringssl | ||
steps: | ||
- name: Install common tools | ||
run: choco install capnproto | ||
- name: Install nasm and ninja for BoringSSL | ||
if: matrix.feature == 'vendored-boringssl' | ||
run: choco install nasm ninja | ||
- name: Install nasm for AWS-LC | ||
if: matrix.feature == 'vendored-aws-lc' | ||
uses: ilammy/setup-nasm@v1 | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Install rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy | ||
- name: Cargo build | ||
run: cargo build --no-default-features --features ${{ matrix.feature }},$env:CROSS_COMMON_FEATURES |
This file contains 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
This file contains 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