22
22
APP_NAME : dda
23
23
PYTHON_VERSION : " 3.12"
24
24
PYOXIDIZER_VERSION : " 0.24.0"
25
- DIST_URL : " https://github.com/DataDog/datadog-agent-dev/releases/download"
26
25
27
26
jobs :
28
27
python-artifacts :
@@ -108,11 +107,9 @@ jobs:
108
107
# Linux
109
108
- target : aarch64-unknown-linux-gnu
110
109
os : ubuntu-22.04
111
- use-dist : true
112
110
cross : true
113
111
- target : x86_64-unknown-linux-gnu
114
112
os : ubuntu-22.04
115
- use-dist : true
116
113
cross : true
117
114
- target : x86_64-unknown-linux-musl
118
115
os : ubuntu-22.04
@@ -123,22 +120,19 @@ jobs:
123
120
# Windows
124
121
- target : x86_64-pc-windows-msvc
125
122
os : windows-2022
126
- use-dist : true
127
123
- target : i686-pc-windows-msvc
128
124
os : windows-2022
129
125
# macOS
130
126
- target : aarch64-apple-darwin
131
127
os : macos-13
132
- use-dist : true
133
128
- target : x86_64-apple-darwin
134
129
os : macos-13
135
- use-dist : true
136
130
137
131
env :
138
132
CARGO : cargo
139
133
CARGO_BUILD_TARGET : ${{ matrix.job.target }}
140
134
PYAPP_REPO : pyapp
141
- PYAPP_VERSION : " 0.25 .0"
135
+ PYAPP_VERSION : " 0.27 .0"
142
136
PYAPP_UV_ENABLED : " true"
143
137
PYAPP_PASS_LOCATION : " true"
144
138
@@ -196,26 +190,14 @@ jobs:
196
190
name : python-artifacts
197
191
path : dist
198
192
199
- - name : Configure embedded project
193
+ - name : Configure dev build
200
194
if : ${{ !startsWith(github.event.ref, 'refs/tags') }}
201
195
run : |-
202
196
cd dist
203
197
wheel="$(echo *.whl)"
204
198
mv "$wheel" "../$PYAPP_REPO"
205
199
echo "PYAPP_PROJECT_PATH=$wheel" >> $GITHUB_ENV
206
200
207
- - name : Configure release with distribution
208
- if : startsWith(github.event.ref, 'refs/tags') && matrix.job.use-dist
209
- run : |-
210
- echo "PYAPP_SKIP_INSTALL=true" >> $GITHUB_ENV
211
- echo "PYAPP_FULL_ISOLATION=true" >> $GITHUB_ENV
212
- echo "PYAPP_DISTRIBUTION_SOURCE=${{ env.DIST_URL }}/v${{ needs.python-artifacts.outputs.version }}/dda-dist-${{ matrix.job.target }}.tar.gz" >> $GITHUB_ENV
213
- echo "PYAPP_DISTRIBUTION_PATH_PREFIX=python" >> $GITHUB_ENV
214
- echo "PYAPP_ALLOW_UPDATES=true" >> $GITHUB_ENV
215
-
216
- # Disable in the case of self updates
217
- echo "PYAPP_UV_ENABLED=false" >> $GITHUB_ENV
218
-
219
201
- name : Build binary
220
202
run : hatch build --target binary
221
203
@@ -531,46 +513,20 @@ jobs:
531
513
path : signed/${{ steps.pkg.outputs.path }}
532
514
if-no-files-found : error
533
515
534
- distributions-dev :
535
- name : Build development distributions
536
- if : ${{ !startsWith(github.event.ref, 'refs/tags') }}
537
- uses : ./.github/workflows/build-distributions.yml
538
- # This actually does not need the binary jobs but we want to prioritize
539
- # resources for the test jobs therefore this forces these later on
540
- needs : binaries
541
-
542
- distributions-release :
543
- name : Build release distributions
544
- needs :
545
- - python-artifacts
546
- - publish-pypi
547
- if : startsWith(github.event.ref, 'refs/tags')
548
- uses : ./.github/workflows/build-distributions.yml
549
- with :
550
- version : ${{ needs.python-artifacts.outputs.version }}
551
-
552
516
publish-release :
553
517
name : Publish distributions
554
518
if : startsWith(github.event.ref, 'refs/tags')
555
519
needs :
556
520
- binaries
557
521
- windows-packaging
558
522
- macos-packaging
559
- - distributions-release
560
523
runs-on : ubuntu-latest
561
524
562
525
permissions :
563
526
contents : write
564
527
id-token : write
565
528
566
529
steps :
567
- - name : Download distributions
568
- uses : actions/download-artifact@v4
569
- with :
570
- pattern : distribution-*
571
- path : distributions
572
- merge-multiple : true
573
-
574
530
- name : Download binaries
575
531
uses : actions/download-artifact@v4
576
532
with :
@@ -603,5 +559,4 @@ jobs:
603
559
with :
604
560
files : |-
605
561
archives/*
606
- distributions/*
607
562
installers/*
0 commit comments