Add debian packaging
This commit is contained in:
28
.github/workflows/rust.yml
vendored
28
.github/workflows/rust.yml
vendored
@@ -104,30 +104,34 @@ jobs:
|
|||||||
# - name: Build
|
# - name: Build
|
||||||
# run: ./trunk build
|
# run: ./trunk build
|
||||||
|
|
||||||
rpm:
|
packages:
|
||||||
name: Build RPM
|
name: Generate Packages
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install RPM Build Tools
|
- name: Install Packaging Tools
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y rpm binutils
|
sudo apt-get install -y rpm binutils
|
||||||
cargo install cargo-generate-rpm
|
cargo install cargo-generate-rpm cargo-deb
|
||||||
|
|
||||||
- name: Build Rust Project
|
- name: Build Project
|
||||||
run: cargo build --release
|
run: cargo build --release
|
||||||
|
|
||||||
- name: Strip Debug Symbols
|
- name: Strip Debug Symbols
|
||||||
run: strip target/release/notedeck
|
run: strip target/release/notedeck || echo "Skipping strip if not applicable"
|
||||||
|
|
||||||
- name: Build RPM
|
- name: Build Packages
|
||||||
run: cargo generate-rpm
|
run: |
|
||||||
|
cargo generate-rpm
|
||||||
|
cargo deb
|
||||||
|
|
||||||
- name: Upload RPM Artifact
|
- name: Upload Packages
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: notedeck-rpm
|
name: notedeck-packages
|
||||||
path: target/generate-rpm/*.rpm
|
path: |
|
||||||
|
target/generate-rpm/*.rpm
|
||||||
|
target/debian/*.deb
|
||||||
|
|||||||
Reference in New Issue
Block a user