CI build deb

This commit is contained in:
Kevin Yue 2024-02-23 06:07:16 -05:00
parent 48e22f4f78
commit aa0f6bf5bb

View File

@ -35,6 +35,40 @@ jobs:
name: artifact-tarball
path: |
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
# setup-matrix: