Split deb to separate task

This commit is contained in:
Tom Foster 2024-04-23 12:41:38 +01:00 committed by GitHub
parent 2d94da50dd
commit 2b05845095
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -131,7 +131,6 @@ jobs:
./bin/nix-build-and-cache .#static-${{ matrix.target }} ./bin/nix-build-and-cache .#static-${{ matrix.target }}
mkdir -p target/release mkdir -p target/release
cp -v -f result/bin/conduit target/release cp -v -f result/bin/conduit target/release
direnv exec . cargo deb --no-build --no-strip --output target/debian/${{ matrix.target }}.deb
- name: Upload static ${{ matrix.target }} - name: Upload static ${{ matrix.target }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -140,6 +139,10 @@ jobs:
path: result/bin/conduit path: result/bin/conduit
if-no-files-found: error if-no-files-found: error
- name: Build deb ${{ matrix.target }}
run: |
direnv exec . cargo deb --no-build --no-strip --output target/debian/${{ matrix.target }}.deb
- name: Upload deb ${{ matrix.target }} - name: Upload deb ${{ matrix.target }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
@ -189,8 +192,7 @@ jobs:
await github.rest.actions.deleteArtifact({ await github.rest.actions.deleteArtifact({
owner: context.repo.owner, owner: context.repo.owner,
repo: context.repo.repo, repo: context.repo.repo,
artifact_id: ${{ steps.get-artifact.outputs.result }}, artifact_id: ${{ steps.get-artifact.outputs.result }}
archive_format: 'zip'
}); });
docker-push: docker-push: