mirror of
https://github.com/bytedance/g3.git
synced 2026-05-19 07:54:33 +00:00
Some checks failed
CrossCompiling / Build (push) Has been cancelled
CodeCoverage / lib unit test (push) Has been cancelled
CodeCoverage / g3proxy test (push) Has been cancelled
CodeCoverage / g3bench test (push) Has been cancelled
CodeCoverage / g3statsd test (push) Has been cancelled
Linux-CI / Build (push) Has been cancelled
Linux-CI / Clippy (push) Has been cancelled
Linux-CI / Build vendored (push) Has been cancelled
Linux-CI / Build with OpenSSL Async Job (push) Has been cancelled
MacOS-CI / Build (push) Has been cancelled
MacOS-CI / Build vendored (push) Has been cancelled
StaticLinking / musl (push) Has been cancelled
StaticLinking / msvc (push) Has been cancelled
Windows-CI / Build (push) Has been cancelled
Windows-CI / Build vendored (push) Has been cancelled
86 lines
2.4 KiB
YAML
86 lines
2.4 KiB
YAML
name: StaticLinking
|
|
permissions: { }
|
|
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'ansible/**'
|
|
- 'doc/**'
|
|
- 'sphinx/**'
|
|
- 'scripts/**'
|
|
branches:
|
|
- 'master'
|
|
- 'lts/**'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'ansible/**'
|
|
- 'doc/**'
|
|
- 'sphinx/**'
|
|
- 'scripts/**'
|
|
branches:
|
|
- 'master'
|
|
- 'lts/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS: -C target-feature=+crt-static
|
|
AWS_LC_SYS_PREBUILT_NASM: 1
|
|
|
|
jobs:
|
|
musl:
|
|
name: musl
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
feature:
|
|
- vendored-openssl,rustls-ring
|
|
- vendored-tongsuo,rustls-ring
|
|
# - vendored-boringssl
|
|
# - vendored-aws-lc
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
- name: Install stable toolchain
|
|
uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # v1
|
|
with:
|
|
toolchain: stable
|
|
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 }},quic,vendored-c-ares
|
|
msvc:
|
|
name: msvc
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
feature:
|
|
- vendored-openssl,rustls-ring
|
|
- vendored-tongsuo,rustls-ring
|
|
- vendored-boringssl,rustls-ring
|
|
- vendored-aws-lc,rustls-aws-lc
|
|
steps:
|
|
- name: Install common tools
|
|
run: choco install capnproto
|
|
- name: Install nasm and ninja for BoringSSL
|
|
if: contains(matrix.feature, 'vendored-boringssl')
|
|
run: choco install nasm ninja
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
- name: Install rust toolchain
|
|
uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # v1
|
|
with:
|
|
toolchain: stable
|
|
components: clippy
|
|
- name: Cargo build
|
|
run: cargo build --no-default-features --features ${{ matrix.feature }},quic,vendored-c-ares
|