mirror of
https://github.com/aljazceru/notedeck.git
synced 2026-01-13 05:14:22 +01:00
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
|
||||
# run: ./trunk build
|
||||
|
||||
rpm:
|
||||
name: Build RPM
|
||||
packages:
|
||||
name: Generate Packages
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install RPM Build Tools
|
||||
- name: Install Packaging Tools
|
||||
run: |
|
||||
sudo apt-get update
|
||||
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
|
||||
|
||||
- name: Strip Debug Symbols
|
||||
run: strip target/release/notedeck
|
||||
run: strip target/release/notedeck || echo "Skipping strip if not applicable"
|
||||
|
||||
- name: Build RPM
|
||||
run: cargo generate-rpm
|
||||
- name: Build Packages
|
||||
run: |
|
||||
cargo generate-rpm
|
||||
cargo deb
|
||||
|
||||
- name: Upload RPM Artifact
|
||||
- name: Upload Packages
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: notedeck-rpm
|
||||
path: target/generate-rpm/*.rpm
|
||||
name: notedeck-packages
|
||||
path: |
|
||||
target/generate-rpm/*.rpm
|
||||
target/debian/*.deb
|
||||
|
||||
Reference in New Issue
Block a user