From ff3d062ae2c541f57671dc110a902e26d1672e90 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 7 May 2024 13:13:05 -0700 Subject: [PATCH] Remove unused/no-op CI cruft. --- .ci_tools/misc_ci.sh | 31 ------------------------------- .ci_tools/run_samples.sh | 4 ---- .github/workflows/build.yml | 5 ----- 3 files changed, 40 deletions(-) delete mode 100755 .ci_tools/misc_ci.sh delete mode 100755 .ci_tools/run_samples.sh diff --git a/.ci_tools/misc_ci.sh b/.ci_tools/misc_ci.sh deleted file mode 100755 index e2944ef93..000000000 --- a/.ci_tools/misc_ci.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -set +e - -MISC_STATUS=0 -# check that all Support section of the README are the same. -for f in */README.md; do - sed -n '/Support/,/License/p' $f > /tmp/$(dirname $f).readme; -done && diff -u --from-file=/tmp/hello-jni.readme /tmp/*.readme -MISC_STATUS=$(($MISC_STATUS + $?)) - -# check that all targetSdkVersion are 26+ -# test "$(grep -H targetSdkVersion */app/build.gradle | tee /dev/stderr | cut -d= -f 2 | xargs -n1 echo | sort | uniq | wc -l)" = "2" -# check that there is no tabs in AndroidManifest -(! grep -n $'\t' */*/src/main/AndroidManifest.xml) | cat -t; -MISC_STATUS=$(($MISC_STATUS + ${PIPESTATUS[0]})) - -# check that there is no trailing spaces in AndroidManifest -(! grep -E '\s+$' */*/src/main/AndroidManifest.xml) | cat -e; -MISC_STATUS=$(($MISC_STATUS + ${PIPESTATUS[0]})) - -## Fix the builder then enable it [TBD] -#(cd builder && ./gradlew test) -# print build failure summary -# pandoc builder/build/reports/tests/index.html -t plain | sed -n '/^Failed tests/,/default-package/p' -# print lint results details -# for f in */app/build/outputs/lint-results.html; do pandoc $f -t plain; done - -# populate the error to final status -if [[ "$MISC_STATUS" -ne 0 ]]; then - SAMPLE_CI_RESULT=$(($SAMPLE_CI_RESULT + 1)) -fi diff --git a/.ci_tools/run_samples.sh b/.ci_tools/run_samples.sh deleted file mode 100755 index b3241b5f6..000000000 --- a/.ci_tools/run_samples.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -# TBD: load apks on emulator -# diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f63441f2..41b41c5ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,15 +21,10 @@ jobs: - name: Setup Android SDK uses: android-actions/setup-android@v3 - - uses: actions/setup-python@v4 - with: - python-version: 3.x - - name: build samples run: | export SAMPLE_CI_RESULT=0 source .ci_tools/build_samples.sh - source .ci_tools/run_samples.sh eval "[[ $SAMPLE_CI_RESULT == 0 ]]" - uses: pre-commit/action@v3.0.0