4747 strategy :
4848 fail-fast : false
4949 matrix :
50- python-version : ["3.10", "3.11", "3.12", "3.13"]
50+ python-version : ["3.10", "3.11", "3.12", "3.13", "3.14" ]
5151 runs-on : macos-latest
5252 steps :
5353 - name : Checkout repository
9494 strategy :
9595 fail-fast : false
9696 matrix :
97- python-version : ["3.10", "3.11", "3.12", "3.13"]
97+ python-version : ["3.10", "3.11", "3.12", "3.13", "3.14" ]
9898 runs-on : windows-latest
9999 steps :
100100 - name : Checkout repository
@@ -137,7 +137,7 @@ jobs:
137137 strategy :
138138 fail-fast : false
139139 matrix :
140- python-version : ["3.10", "3.11", "3.12", "3.13"]
140+ python-version : ["3.10", "3.11", "3.12", "3.13", "3.14" ]
141141 target : [x86_64, aarch64]
142142 runs-on : ubuntu-latest
143143 steps :
@@ -181,7 +181,7 @@ jobs:
181181 strategy :
182182 fail-fast : false
183183 matrix :
184- python-version : ["3.10", "3.11", "3.12", "3.13"]
184+ python-version : ["3.10", "3.11", "3.12", "3.13", "3.14" ]
185185 target : [x86_64-unknown-linux-musl, aarch64-unknown-linux-musl]
186186 runs-on : ubuntu-latest
187187 steps :
@@ -286,7 +286,6 @@ jobs:
286286 CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
287287
288288 build-cli-artifacts :
289- name : build-release
290289 needs : [tag-release]
291290 runs-on : ${{ matrix.os }}
292291 env :
@@ -312,9 +311,7 @@ jobs:
312311 - os : windows-latest
313312 target : aarch64-pc-windows-msvc
314313 - os : windows-latest
315- target : x86_64-pc-windows-gnu
316- - os : windows-latest
317- target : x86_64-pc-windows-gnu
314+ target : x86_64-pc-windows-msvc
318315
319316 steps :
320317 - name : Checkout repository
@@ -323,43 +320,44 @@ jobs:
323320 - name : Set up Rust
324321 run : rustup toolchain add --profile minimal --target ${{ matrix.target }} stable
325322
323+ - name : Install cross
324+ run : cargo install cross
325+
326326 - name : Set target variables
327327 shell : bash
328328 run : |
329329 echo "TARGET_FLAGS=--target ${{ matrix.target }}" >> $GITHUB_ENV
330330 echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV
331331
332- - name : Show command used for Cargo
333- shell : bash
334- run : |
335- echo "cargo command is: ${{ env.CARGO }}"
336- echo "target flag is: ${{ env.TARGET_FLAGS }}"
337- echo "target dir is: ${{ env.TARGET_DIR }}"
338-
339332 - name : Build release binary
340333 shell : bash
334+ # cd ensures we only pull in CLI dependencies
341335 run : |
342- cargo build --verbose --release --bin dbn ${{ env.TARGET_FLAGS }}
336+ cd rust/dbn-cli
337+ cross build --release --bin dbn ${{ env.TARGET_FLAGS }}
343338 if [ "${{ matrix.os }}" = "windows-latest" ]; then
344339 bin="target/${{ matrix.target }}/release/dbn.exe"
345340 else
346341 bin="target/${{ matrix.target }}/release/dbn"
347342 fi
343+ cd -
344+ stat $bin
348345 echo "BIN=$bin" >> $GITHUB_ENV
349346
350347 - name : Determine archive name
351348 shell : bash
352349 run : |
353- version="${{ needs.create-release.outputs.version }}"
354- echo "ARCHIVE=ripgrep-$version-${{ matrix.target }}" >> $GITHUB_ENV
350+ version="$(scripts/get_version.sh)"
351+ echo "ARCHIVE=dbn-$version-${{ matrix.target }}" >> $GITHUB_ENV
352+ echo "VERSION=$version" >> $GITHUB_ENV
355353
356354 - name : Creating directory for archive
357355 shell : bash
358356 run : |
359- mkdir -p "$ARCHIVE"/{complete, doc}
357+ mkdir -p "$ARCHIVE"/doc
360358 cp "$BIN" "$ARCHIVE"/
361- cp {rust/src/ dbn-cli/README.md,LICENSE} "$ARCHIVE"/
362- cp { CHANGELOG.md} "$ARCHIVE"/doc/
359+ cp {rust/dbn-cli/README.md,LICENSE} "$ARCHIVE"/
360+ cp CHANGELOG.md "$ARCHIVE"/doc/
363361
364362 - name : Build archive (Windows)
365363 shell : bash
@@ -383,6 +381,6 @@ jobs:
383381 env :
384382 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
385383 shell : bash
384+ # clobber to overwrite if we have to rerun the release
386385 run : |
387- version="$(scripts/get_version.sh)"
388- gh release upload "$version" ${{ env.ASSET }} ${{ env.ASSET_SUM }}
386+ gh release upload v${{ env.VERSION }} ${{ env.ASSET }} ${{ env.ASSET_SUM }} --clobber
0 commit comments