mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Compare commits
No commits in common. "ff439860856185fb1d25ab9ea6290c9529db9675" and "c3d7a9fee48d42a94ea57af4aae253f7c4274473" have entirely different histories.
ff43986085
...
c3d7a9fee4
33
.github/workflows/build.yaml
vendored
33
.github/workflows/build.yaml
vendored
@ -145,38 +145,31 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: ${{fromJson(needs.setup-matrix.outputs.matrix)}}
|
os: ${{fromJson(needs.setup-matrix.outputs.matrix)}}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
# container:
|
container:
|
||||||
# image: yuezk/gpdev:pkgbuild
|
image: yuezk/gpdev:pkgbuild
|
||||||
# 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: Download tarball
|
- name: Download tarball
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: artifact-tarball
|
name: artifact-tarball
|
||||||
- name: Docker Login
|
- name: Build PKGBUILD package
|
||||||
run: echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
|
|
||||||
- name: Init PKGBUILD package
|
|
||||||
run: |
|
run: |
|
||||||
tar -xzf globalprotect-openconnect-*.tar.gz
|
tar -xzf globalprotect-openconnect-*.tar.gz
|
||||||
cd globalprotect-openconnect-*/
|
cd globalprotect-openconnect-*/
|
||||||
|
|
||||||
make init-pkgbuild BUILD_FE=0
|
make pkgbuild BUILD_FE=0
|
||||||
- name: Build PKGBUILD package in Docker
|
- name: Install PKGBUILD package
|
||||||
run: |
|
run: |
|
||||||
cd globalprotect-openconnect-*/
|
cd globalprotect-openconnect-*/
|
||||||
docker run --rm -v $(pwd)/.build/pkgbuild:/pkgbuild yuezk/gpdev:pkgbuild ./build.sh
|
sudo pacman -U --noconfirm .build/pkgbuild/*.pkg.tar.zst
|
||||||
|
|
||||||
- name: Install PKGBUILD package in Docker
|
|
||||||
run: |
|
|
||||||
cd globalprotect-openconnect-*/
|
|
||||||
|
|
||||||
docker run \
|
|
||||||
--rm -v $(pwd)/.build/pkgbuild:/pkgbuild \
|
|
||||||
yuezk/gpdev:pkgbuild \
|
|
||||||
bash -c "sudo pacman -U --noconfirm /pkgbuild/*.pkg.tar.zst; gpclient --version; gpservice --version; gpauth --version; gpgui-helper --version;"
|
|
||||||
|
|
||||||
|
gpclient --version
|
||||||
|
gpservice --version
|
||||||
|
gpauth --version
|
||||||
|
gpgui-helper --version
|
||||||
- name: Upload PKGBUILD package
|
- name: Upload PKGBUILD package
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
export OFFLINE = @OFFLINE@ BUILD_FE=0
|
export OFFLINE = @OFFLINE@
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
@ -25,7 +25,7 @@ build() {
|
|||||||
# Must unset the CFLAGS, otherwise the build fails
|
# Must unset the CFLAGS, otherwise the build fails
|
||||||
unset CFLAGS
|
unset CFLAGS
|
||||||
|
|
||||||
make build OFFLINE=@OFFLINE@ BUILD_FE=0
|
make build OFFLINE=@OFFLINE@
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
@ -35,9 +35,7 @@ A GUI for GlobalProtect VPN, based on OpenConnect, supports the SSO authenticati
|
|||||||
%setup
|
%setup
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# The injected RUSTFLAGS could fail the build
|
make build OFFLINE=@OFFLINE@
|
||||||
unset RUSTFLAGS
|
|
||||||
make build OFFLINE=@OFFLINE@ BUILD_FE=0
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user