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