mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-19 06:26:14 -05:00
ci: install FreeBSD LZ4 and expose safe native test diagnostics
This commit is contained in:
2 files changed
+11
-6
No files matched your search
@@ -1017,6 +1017,7 @@ jobs:
|
|||||||
gmake \
|
gmake \
|
||||||
pkgconf \
|
pkgconf \
|
||||||
libxml2 \
|
libxml2 \
|
||||||
|
liblz4 \
|
||||||
gnutls \
|
gnutls \
|
||||||
p11-kit \
|
p11-kit \
|
||||||
nettle \
|
nettle \
|
||||||
@@ -1025,6 +1026,7 @@ jobs:
|
|||||||
libayatana-appindicator \
|
libayatana-appindicator \
|
||||||
polkit \
|
polkit \
|
||||||
webkit2-gtk_41
|
webkit2-gtk_41
|
||||||
|
pkgconf --exists libxml-2.0 liblz4 gnutls p11-kit-1 hogweed nettle gmp
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
(
|
(
|
||||||
|
|||||||
@@ -107,30 +107,33 @@ jobs:
|
|||||||
- name: Check demo-free NSH production
|
- name: Check demo-free NSH production
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
run: |
|
run: |
|
||||||
trap 'code=$?; if [ "$code" -ne 0 ]; then echo "::error::NSH production check failed; diagnostics suppressed."; fi' EXIT
|
diagnostics="$(mktemp)"
|
||||||
|
trap 'code=$?; if [ "$code" -ne 0 ]; then echo "::error::NSH production check failed; diagnostics suppressed."; python3 .ci/scripts/private-ci-diagnostics.py compile "$diagnostics" || true; fi; rm -f "$diagnostics"' EXIT
|
||||||
(
|
(
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd source/gpgui
|
cd source/gpgui
|
||||||
cargo +1.97.0 check --manifest-path apps/desktop-nsh/Cargo.toml --locked --bin gpgui-nsh
|
cargo +1.97.0 check --manifest-path apps/desktop-nsh/Cargo.toml --locked --bin gpgui-nsh
|
||||||
) >/dev/null 2>&1
|
) >"$diagnostics" 2>&1
|
||||||
echo "NSH production check passed."
|
echo "NSH production check passed."
|
||||||
- name: Compile NSH tests
|
- name: Compile NSH tests
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
run: |
|
run: |
|
||||||
trap 'code=$?; if [ "$code" -ne 0 ]; then echo "::error::NSH test compilation failed; diagnostics suppressed."; fi' EXIT
|
diagnostics="$(mktemp)"
|
||||||
|
trap 'code=$?; if [ "$code" -ne 0 ]; then echo "::error::NSH test compilation failed; diagnostics suppressed."; python3 .ci/scripts/private-ci-diagnostics.py compile "$diagnostics" || true; fi; rm -f "$diagnostics"' EXIT
|
||||||
(
|
(
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd source/gpgui
|
cd source/gpgui
|
||||||
cargo +1.97.0 test --manifest-path apps/desktop-nsh/Cargo.toml --locked --features demo --no-run
|
cargo +1.97.0 test --manifest-path apps/desktop-nsh/Cargo.toml --locked --features demo --no-run
|
||||||
) >/dev/null 2>&1
|
) >"$diagnostics" 2>&1
|
||||||
echo "NSH test compilation passed."
|
echo "NSH test compilation passed."
|
||||||
- name: Run NSH tests
|
- name: Run NSH tests
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: |
|
run: |
|
||||||
trap 'code=$?; if [ "$code" -ne 0 ]; then echo "::error::NSH tests failed; diagnostics suppressed."; fi' EXIT
|
diagnostics="$(mktemp)"
|
||||||
|
trap 'code=$?; if [ "$code" -ne 0 ]; then echo "::error::NSH tests failed; diagnostics suppressed."; python3 .ci/scripts/private-ci-diagnostics.py tests "$diagnostics" || true; fi; rm -f "$diagnostics"' EXIT
|
||||||
(
|
(
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd source/gpgui
|
cd source/gpgui
|
||||||
cargo +1.97.0 test --manifest-path apps/desktop-nsh/Cargo.toml --locked --features demo -- --test-threads=1
|
cargo +1.97.0 test --manifest-path apps/desktop-nsh/Cargo.toml --locked --features demo -- --test-threads=1
|
||||||
) >/dev/null 2>&1
|
) >"$diagnostics" 2>&1
|
||||||
echo "NSH tests passed."
|
echo "NSH tests passed."
|
||||||
Reference in new issue
Block a user