From aa0f6bf5bb2eca47c60b33e37f31baa3412959c8 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Fri, 23 Feb 2024 06:07:16 -0500 Subject: [PATCH] CI build deb --- .github/workflows/build.yaml | 72 ++++++++++++++++++++++++++---------- 1 file changed, 53 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1f4f0bdb..5b0e9596 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,25 +16,59 @@ jobs: tarball: runs-on: ubuntu-latest steps: - - uses: pnpm/action-setup@v2 - with: - version: 8 - - name: Checkout GlobalProtect-openconnect - uses: actions/checkout@v3 - with: - token: ${{ secrets.GH_PAT }} - repository: yuezk/GlobalProtect-openconnect - path: gp - - name: Create tarball - run: | - cd gp - make tarball - - name: Upload tarball - uses: actions/upload-artifact@v3 - with: - name: artifact-tarball - path: | - globalprotect-openconnect-*.tar.gz + - uses: pnpm/action-setup@v2 + with: + version: 8 + - name: Checkout GlobalProtect-openconnect + uses: actions/checkout@v3 + with: + token: ${{ secrets.GH_PAT }} + repository: yuezk/GlobalProtect-openconnect + path: gp + - name: Create tarball + run: | + cd gp + make tarball + - name: Upload tarball + uses: actions/upload-artifact@v3 + with: + 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: