mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-12-12 14:13:20 +00:00
build: create RPM package (#57)
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -35,17 +35,18 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: cargo install cargo-deb
|
run: sudo apt update && sudo apt install rpm && cargo install cargo-deb && cargo install cargo-generate-rpm
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
- run: make linux-package linux-deb
|
- run: make linux-package linux-deb linux-rpm
|
||||||
- name: Release
|
- name: Release
|
||||||
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
|
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
*linux.tar.gz
|
*.tar.gz
|
||||||
*amd65.deb
|
*.deb
|
||||||
|
*.rpm
|
||||||
windowsbuild:
|
windowsbuild:
|
||||||
name: Create Windows Package
|
name: Create Windows Package
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|||||||
4
Makefile
4
Makefile
@@ -37,6 +37,10 @@ linux-package: linux-binary-x86_64
|
|||||||
linux-deb: linux-binary-x86_64
|
linux-deb: linux-binary-x86_64
|
||||||
cargo deb --no-build --strip --target=x86_64-unknown-linux-gnu --output=.
|
cargo deb --no-build --strip --target=x86_64-unknown-linux-gnu --output=.
|
||||||
|
|
||||||
|
.PHONY: linux-rpm
|
||||||
|
linux-deb: linux-binary-x86_64
|
||||||
|
cargo generate-rpm --target=x86_64-unknown-linux-gnu --output=.
|
||||||
|
|
||||||
binary-all: win-binary-x86_64 linux-binary-x86_64
|
binary-all: win-binary-x86_64 linux-binary-x86_64
|
||||||
|
|
||||||
.PHONY: win-binary-x86_64
|
.PHONY: win-binary-x86_64
|
||||||
|
|||||||
Reference in New Issue
Block a user