Skip to content

feat: Add FDv2 support to the test data source (#200) #520

feat: Add FDv2 support to the test data source (#200)

feat: Add FDv2 support to the test data source (#200) #520

Workflow file for this run

name: Run CI
on:
push:
branches: [main, "feat/**"]
paths-ignore:
- "**.md" # Do not need to run CI for markdown changes.
pull_request:
branches: [main, "feat/**"]
paths-ignore:
- "**.md"
jobs:
ci-build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
features:
- name: "default (aws-lc-rs for crypto)"
- name: "no-features"
cargo-flags: "--no-default-features"
cargo-test-flags: "--lib"
skip_contract_tests: "true"
- name: "hyper"
cargo-flags: "--no-default-features --features hyper"
cargo-test-flags: "--lib"
- name: "hyper-rustls-native-roots"
cargo-flags: "--no-default-features --features hyper-rustls-native-roots"
- name: "hyper-rustls-webpki-roots"
cargo-flags: "--no-default-features --features hyper-rustls-webpki-roots"
- name: "native-tls"
cargo-flags: "--no-default-features --features native-tls"
- name: "openssl crypto"
cargo-flags: "--no-default-features --features hyper-rustls-native-roots,crypto-openssl"
name: CI (${{ matrix.features.name }})
steps:
- uses: actions/checkout@v4
- name: Get Rust version
id: rust-version
run: cat ./.github/variables/rust-versions.env >> $GITHUB_OUTPUT
- name: Setup rust tooling
run: |
rustup override set ${{ steps.rust-version.outputs.target }}
rustup component add rustfmt clippy
- uses: ./.github/actions/ci
with:
cargo-flags: ${{ matrix.features.cargo-flags }}
cargo-test-flags: ${{ matrix.features.cargo-test-flags }}
- uses: ./.github/actions/contract-tests
if: ${{ matrix.features.skip_contract_tests != 'true' }}
with:
cargo-flags: ${{ matrix.features.cargo-flags }}
token: ${{ secrets.GITHUB_TOKEN }}
build-docs:
runs-on: ubuntu-latest
name: Build Documentation (all features)
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup rust tooling
run: rustup override set nightly
- name: Install cargo-docs-rs
run: cargo install cargo-docs-rs
- name: Build documentation
run: cargo docs-rs -p launchdarkly-server-sdk
musl-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get Rust version
id: rust-version
run: cat ./.github/variables/rust-versions.env >> $GITHUB_OUTPUT
- name: Setup rust tooling
run: |
rustup override set ${{ steps.rust-version.outputs.target }}
rustup component add rustfmt clippy
rustup target add x86_64-unknown-linux-musl
- name: Install musl tools
run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Build
run: TARGET_CC=musl-gcc RUSTFLAGS="-C linker=musl-gcc" cargo build --release --target=x86_64-unknown-linux-musl -p launchdarkly-server-sdk