Skip to content

build: add openssl to required of rpm build #103

build: add openssl to required of rpm build

build: add openssl to required of rpm build #103

Workflow file for this run

---
name: "pre-release"
on:
push:
branches:
- "main"
permissions:
contents: write
jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"
steps:
# ...
- uses: actions/checkout@v3
- name: Install libpcap
run: sudo apt-get install -y libpcap-dev
- name: Install deb generator
run: cargo install cargo-deb
- name: Install rpm generator
run: cargo install cargo-generate-rpm
- name: Cache dependencies
uses: Swatinem/rust-cache@v2.2.1
- name: Run tests
run: cargo test --verbose
- name: Run Clippy
run: cargo clippy --fix --allow-dirty --allow-staged --release --verbose
- name: Build
run: cargo build --release --verbose
- name: Build deb
run: cargo deb ; mv target/debian/fluere_*.deb target/debian/fluere_latest_x86_64.deb
- name: Strip Builded file
run: strip -s target/release/fluere
- name: Build rpm
run: cargo generate-rpm; mv target/generate-rpm/fluere-*.rpm target/generate-rpm/fluere_latest_x86_64.rpm
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
target/debian/fluere_*.deb
target/generate-rpm/fluere_*.rpm