This commit is contained in:
Kevin Yue 2024-02-25 22:28:27 -05:00
parent 841bb29475
commit 7d0eddf50b

View File

@ -25,7 +25,7 @@ jobs:
if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then if [[ "${{ github.ref }}" == "refs/tags/"* ]]; then
echo "matrix=[\"ubuntu-latest\", \"arm64\"]" >> $GITHUB_OUTPUT echo "matrix=[\"ubuntu-latest\", \"arm64\"]" >> $GITHUB_OUTPUT
else else
echo "matrix=[\"ubuntu-latest\"]" >> $GITHUB_OUTPUT echo "matrix=[\"arm64\"]" >> $GITHUB_OUTPUT
fi fi
tarball: tarball:
@ -54,6 +54,7 @@ jobs:
gp/.build/tarball/*.tar.gz gp/.build/tarball/*.tar.gz
build-deb: build-deb:
if: startsWith(github.ref, 'refs/tags/')
needs: needs:
- setup-matrix - setup-matrix
- tarball - tarball
@ -95,6 +96,7 @@ jobs:
globalprotect-openconnect-*/.build/deb/*.deb globalprotect-openconnect-*/.build/deb/*.deb
build-rpm: build-rpm:
if: startsWith(github.ref, 'refs/tags/')
needs: needs:
- setup-matrix - setup-matrix
- tarball - tarball
@ -147,12 +149,14 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
container: container:
image: yuezk/gpdev:pkgbuild image: yuezk/gpdev:pkgbuild
# Add -u builder for arm64
options: ${{ matrix.os == 'arm64' && '-u builder' || '-u user' }}
credentials: credentials:
username: ${{ secrets.DOCKER_HUB_USERNAME }} username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }} password: ${{ secrets.DOCKER_HUB_TOKEN }}
steps: steps:
- name: chown
run: |
sudo chown -R $USER:$USER .
ls -l
- name: Download tarball - name: Download tarball
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
@ -181,6 +185,7 @@ jobs:
globalprotect-openconnect-*/.build/pkgbuild/*.pkg.tar.zst globalprotect-openconnect-*/.build/pkgbuild/*.pkg.tar.zst
build-binary: build-binary:
if: startsWith(github.ref, 'refs/tags/')
needs: needs:
- setup-matrix - setup-matrix
- tarball - tarball
@ -223,6 +228,7 @@ jobs:
globalprotect-openconnect-*/.build/binary/*.bin.tar.xz* globalprotect-openconnect-*/.build/binary/*.bin.tar.xz*
build-gpgui: build-gpgui:
if: startsWith(github.ref, 'refs/tags/')
needs: needs:
- setup-matrix - setup-matrix
strategy: strategy: