-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from grumlimited/main
Github hooks to produce arch, deb and centos packages
- Loading branch information
Showing
8 changed files
with
172 additions
and
87 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
goos: [linux] | ||
goarch: [amd64] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.22' | ||
|
||
- name: Build | ||
run: | | ||
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
result | ||
gohip | ||
command.log | ||
.idea | ||
*.iml |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
_packager="Romain Gallet <romain_gallet_at_gmail_com" | ||
_deb_pkgname=gohip | ||
pkgname=gohip-bin | ||
pkgrel=1 | ||
pkgdesc='gohip global protect vpn HIP script.' | ||
arch=('x86_64') | ||
url="https://github.com/bechampion/$_deb_pkgname" | ||
license=('GPLv3') | ||
groups=() | ||
depends=('iproute2') | ||
makedepends=() | ||
checkdepends=() | ||
optdepends=() | ||
provides=() | ||
replaces=() | ||
backup=() | ||
options=() | ||
source=("$url/releases/download/$pkgver/$_deb_pkgname-$pkgver-$arch.deb") | ||
noextract=() | ||
|
||
build() { | ||
rm control.tar.zst | ||
tar xvf data.tar.zst | ||
} | ||
|
||
package() { | ||
cp -fr usr/ ${pkgdir} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Package: gohip | ||
Section: network | ||
Priority: optional | ||
Architecture: amd64 | ||
Depends: iproute2 | ||
Maintainer: romain_gallet_at_gmail_com | ||
Description: gohip global protect vpn HIP script |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
chmod +x /usr/bin/gohip | ||
|
||
exit 0 |
This file was deleted.
Oops, something went wrong.