mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-29 14:16:26 -04:00
CI build deb
This commit is contained in:
parent
48e22f4f78
commit
aa0f6bf5bb
72
.github/workflows/build.yaml
vendored
72
.github/workflows/build.yaml
vendored
@ -16,25 +16,59 @@ jobs:
|
|||||||
tarball:
|
tarball:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: pnpm/action-setup@v2
|
- uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 8
|
||||||
- name: Checkout GlobalProtect-openconnect
|
- name: Checkout GlobalProtect-openconnect
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GH_PAT }}
|
token: ${{ secrets.GH_PAT }}
|
||||||
repository: yuezk/GlobalProtect-openconnect
|
repository: yuezk/GlobalProtect-openconnect
|
||||||
path: gp
|
path: gp
|
||||||
- name: Create tarball
|
- name: Create tarball
|
||||||
run: |
|
run: |
|
||||||
cd gp
|
cd gp
|
||||||
make tarball
|
make tarball
|
||||||
- name: Upload tarball
|
- name: Upload tarball
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: artifact-tarball
|
name: artifact-tarball
|
||||||
path: |
|
path: |
|
||||||
globalprotect-openconnect-*.tar.gz
|
globalprotect-openconnect-*.tar.gz
|
||||||
|
deb:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [tarball]
|
||||||
|
container:
|
||||||
|
image: yuezk/gpdev:main
|
||||||
|
credentials:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_TOKEN }}
|
||||||
|
steps:
|
||||||
|
- name: Download tarball
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: artifact-tarball
|
||||||
|
path: gp
|
||||||
|
- name: Build DEB package
|
||||||
|
run: |
|
||||||
|
cd gp
|
||||||
|
tar -xzf globalprotect-openconnect-*.tar.gz
|
||||||
|
cd globalprotect-openconnect-*
|
||||||
|
make deb
|
||||||
|
- name: Install DEB package
|
||||||
|
run: |
|
||||||
|
sudo dpkg -i ../globalprotect-openconnect-*.deb
|
||||||
|
|
||||||
|
gpclient --version
|
||||||
|
gpservice --version
|
||||||
|
gpauth --version
|
||||||
|
gpgui-helper --version
|
||||||
|
- name: Upload DEB package
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: artifact-deb
|
||||||
|
path: |
|
||||||
|
gp/globalprotect-openconnect-*.deb
|
||||||
|
|
||||||
# Include arm64 if ref is a tag
|
# Include arm64 if ref is a tag
|
||||||
# setup-matrix:
|
# setup-matrix:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user