fix(asm): standalone missing tag [backport 2.15] #40818
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
name: Build | |
on: | |
push: | |
branches: | |
- main | |
- '[0-9].[0-9]*' | |
- '[0-9].x' | |
# special branches used to test this workflow | |
# before merging/releasing | |
- build_deploy* | |
- 'upgrade-latest-*' | |
- 'mq-working-branch**' | |
pull_request: | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
# Allow manually triggering, but do NOT upload the result | |
schedule: | |
# Nightly builds after weekdays | |
- cron: 0 2 * * 2-6 | |
jobs: | |
build_wheels: | |
uses: ./.github/workflows/build_python_3.yml | |
with: | |
cibw_build: 'cp37* cp38* cp39* cp310* cp311* cp312*' | |
build_sdist: | |
name: Build source distribution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Include all history and tags | |
with: | |
fetch-depth: 0 | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- uses: actions/setup-python@v5 | |
name: Install Python | |
with: | |
python-version: '3.7' | |
- name: Build sdist | |
run: | | |
pip install "setuptools_scm[toml]>=4" "cython" "cmake>=3.24.2,<3.28" "setuptools-rust" | |
python setup.py sdist | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: source-dist | |
path: dist/*.tar.gz | |
test_alpine_sdist: | |
# alpine is the only environment not built/tested by cibuildwheel | |
name: Test source distribution on Alpine Linux | |
needs: [build_sdist] | |
runs-on: ubuntu-latest | |
container: | |
image: python:3.9-alpine | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: source-dist | |
path: dist | |
- name: Install build dependencies | |
# Rust + Cargo are needed for Cryptography | |
run: apk add git gcc g++ musl-dev libffi-dev openssl-dev bash rust cargo make cmake | |
- name: Check source package | |
run: | | |
pip install twine readme_renderer[md] | |
twine check dist/*.tar.gz | |
- name: Install source package | |
run: pip install dist/*.tar.gz | |
- name: Test the source package | |
run: python $GITHUB_WORKSPACE/tests/smoke_test.py | |
# Move out of the workspace to avoid importing ddtrace from the source | |
working-directory: / |