-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: deb + rpm + binary upload on new release
- Loading branch information
Showing
4 changed files
with
67 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Rust - Release creation | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Set up Rust" | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: "Install dependencies" | ||
run: | | ||
sudo apt update | ||
sudo apt install -y rpm | ||
cargo install cargo-deb | ||
cargo install cargo-generate-rpm | ||
- name: "build-release" | ||
run: cargo build --release | ||
|
||
- name: "Build DEB package" | ||
run: cargo deb -p adb_cli | ||
|
||
- name: "Build RPM package" | ||
run: cargo generate-rpm -p adb_cli | ||
|
||
- name: "Publish deb package" | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
target/debian/*.deb | ||
target/generate-rpm/*.rpm | ||
target/release/adb_cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters