Skip to content

Commit

Permalink
CI build deb
Browse files Browse the repository at this point in the history
  • Loading branch information
yuezk committed Feb 23, 2024
1 parent 48e22f4 commit aa0f6bf
Showing 1 changed file with 53 additions and 19 deletions.
72 changes: 53 additions & 19 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit aa0f6bf

Please sign in to comment.