Skip to content

Commit

Permalink
Merge #368
Browse files Browse the repository at this point in the history
368: v0.2.1 r=sopium a=sopium

Build debian package.

bors merge

Co-authored-by: Yin Guanhao <sopium@mysterious.site>
  • Loading branch information
bors[bot] and blckngm authored Jul 31, 2021
2 parents 8bc939b + e077d94 commit 5055a8e
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 21 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,25 @@ jobs:
if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest'
run: cargo build --release && xz --stdout target/release/titun > target/release/titun-$(uname -m)-${{ matrix.os == 'ubuntu-latest' && 'linux' || 'macos' }}.xz

- id: get_version
if: matrix.os == 'ubuntu-latest'
uses: battila7/get-version-action@v2

- name: Build Deb
if: matrix.os == 'ubuntu-latest'
uses: kentik/pkg@v1.0.0-rc7
with:
name: titun
version: ${{ steps.get_version.outputs.version-without-v }}
arch: x86_64
format: deb
package: titun.pkg.yml

- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
target/release/titun-*
*.deb
titun-*.msi
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["sopium"]
license = "GPL-3.0"
name = "titun"
repository = "https://github.com/sopium/titun"
version = "0.2.0"
version = "0.2.1"
autobenches = false

[workspace]
Expand Down
1 change: 0 additions & 1 deletion debian/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions debian/build-deb.sh

This file was deleted.

8 changes: 0 additions & 8 deletions debian/package/DEBIAN/control

This file was deleted.

2 changes: 1 addition & 1 deletion fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions titun.pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
meta:
description: My Package
vendor: Me
maintainer: Me
depends:
- libc6 (>= 2.23)
files:
"/usr/bin/titun":
file: target/release/titun
mode: "0755"
user: "root"
units:
- titun@.service
File renamed without changes.

0 comments on commit 5055a8e

Please sign in to comment.