diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 910e72e8..86580043 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -74,6 +74,26 @@ jobs: - shell: bash run: cargo build --all + build-datadog-serverless-compat: + name: Build Datadog Serverless Compat + if: ${{ inputs.runner != 'ubuntu-24.04-arm' }} + needs: setup + runs-on: ${{ inputs.runner }} + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Install Protoc Binary + shell: bash + run: chmod +x ./scripts/install-protoc.sh && ./scripts/install-protoc.sh $HOME + - if: ${{ inputs.runner == 'ubuntu-24.04' }} + shell: bash + run: | + sudo apt-get update + rustup target add x86_64-unknown-linux-musl && sudo apt-get install -y musl-tools + cargo build --release -p datadog-serverless-compat --target x86_64-unknown-linux-musl + - if: ${{ inputs.runner == 'windows-2022' }} + shell: bash + run: cargo build --release -p datadog-serverless-compat + test: name: Test needs: setup diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 163d2aa9..db9cc3cb 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -9,6 +9,7 @@ on: jobs: cargo: strategy: + fail-fast: false matrix: runner: [ubuntu-24.04, ubuntu-24.04-arm, windows-2022] uses: ./.github/workflows/cargo.yml diff --git a/crates/datadog-serverless-compat/Cargo.toml b/crates/datadog-serverless-compat/Cargo.toml index 0996127d..669f9d3b 100644 --- a/crates/datadog-serverless-compat/Cargo.toml +++ b/crates/datadog-serverless-compat/Cargo.toml @@ -11,7 +11,7 @@ env_logger = "0.10.0" datadog-trace-agent = { path = "../datadog-trace-agent" } datadog-trace-protobuf = { git = "https://github.com/DataDog/libdatadog/", rev = "d6a2da32c6b92d6865a7e7987c8a1df2203fb1ae" } datadog-trace-utils = { git = "https://github.com/DataDog/libdatadog/", rev = "d6a2da32c6b92d6865a7e7987c8a1df2203fb1ae" } -dogstatsd = { path = "../dogstatsd", default-features = false } +dogstatsd = { path = "../dogstatsd", default-features = true } tokio = { version = "1", features = ["macros", "rt-multi-thread"]} tokio-util = { version = "0.7", default-features = false } tracing = { version = "0.1", default-features = false }