style: rustfmt
#107
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
--- | |
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 |