Skip to content

Commit

Permalink
Cargo Generate-rpm without copy
Browse files Browse the repository at this point in the history
Set the source directory for generate-rpm by supplying --target-dir.

```
When --target-dir TARGET-DIR and --target x86_64-unknown-linux-gnu are specified, a binary RPM file will be created at TARGET-DIR/x86_64-unknown-linux-gnu/generate-rpm/XXX.rpm instead of target/generate-rpm/XXX.rpm. In this case, the source of the asset { source = "target/release/XXX", dest = "/usr/bin/XXX" } will be treated as TARGET-DIR/x86_64-unknown-linux-gnu/release/XXX instead of target/release/XXX.
```
  • Loading branch information
alextrical authored Dec 24, 2023
1 parent 18bd393 commit 86f603b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ jobs:
cargo deb --target ${{ matrix.target }}
- name: Package RPM
run: |
cp -r ./target/${{ matrix.target }}/release ./target
cargo generate-rpm --target ${{ matrix.target }}
cargo generate-rpm --target-dir ./target --target ${{ matrix.target }}
- uses: actions/upload-artifact@v3
with:
name: deb-rpm-${{ matrix.target }}
path: |
target/${{ matrix.target }}/debian/*.deb
target/${{ matrix.target }}/generate-rpm/*.rpm
target/${{ matrix.target }}/generate-rpm/*.rpm

0 comments on commit 86f603b

Please sign in to comment.