Skip to content
Snippets Groups Projects
Commit ffb63c9c authored by 🥺's avatar 🥺 :transgender_flag: Committed by 🥺
Browse files

ci: regex out the cargo/rustc target for cargo-deb

parent de6b296e
No related branches found
No related tags found
No related merge requests found
...@@ -206,10 +206,12 @@ jobs: ...@@ -206,10 +206,12 @@ jobs:
- name: Build static ${{ matrix.target }} - name: Build static ${{ matrix.target }}
run: | run: |
CARGO_DEB_TARGET_TUPLE=$(echo ${{ matrix.target }} | grep -o -E '^([^-]*-){3}[^-]*')
bin/nix-build-and-cache just .#static-${{ matrix.target }} bin/nix-build-and-cache just .#static-${{ matrix.target }}
mkdir -p target/release/${{ matrix.target }} mkdir -p target/release/${{ matrix.target }}
cp -v -f result/bin/conduit target/release/${{ matrix.target }} cp -v -f result/bin/conduit target/release/${{ matrix.target }}
direnv exec . cargo deb --verbose --no-build --no-strip --target=${{ matrix.target }} --output target/release/${{ matrix.target }}/${{ matrix.target }}.deb direnv exec . cargo deb --verbose --no-build --no-strip --target=$CARGO_DEB_TARGET_TUPLE --output target/release/${{ matrix.target }}/${{ matrix.target }}.deb
mv -v target/release/${{ matrix.target }}/conduit static-${{ matrix.target }} mv -v target/release/${{ matrix.target }}/conduit static-${{ matrix.target }}
mv -v target/release/${{ matrix.target }}/${{ matrix.target }}.deb ${{ matrix.target }}.deb mv -v target/release/${{ matrix.target }}/${{ matrix.target }}.deb ${{ matrix.target }}.deb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment