mirror of
https://github.com/pcvolkmer/osc-variant.git
synced 2025-12-13 14:33:21 +00:00
feat: build deb package (#56)
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -34,15 +34,18 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup
|
||||||
|
run: cargo install cargo-deb
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
- run: make linux-package
|
- run: make linux-package linux-deb
|
||||||
- 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
|
*linux.tar.gz
|
||||||
|
*amd65.deb
|
||||||
windowsbuild:
|
windowsbuild:
|
||||||
name: Create Windows Package
|
name: Create Windows Package
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -35,7 +35,7 @@ linux-package: linux-binary-x86_64
|
|||||||
|
|
||||||
.PHONY: linux-deb
|
.PHONY: linux-deb
|
||||||
linux-deb: linux-binary-x86_64
|
linux-deb: linux-binary-x86_64
|
||||||
cargo deb --features unzip-osb --target=x86_64-unknown-linux-gnu --deb-version $(VERSION)
|
cargo deb --no-build --strip --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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user