From: Craig Cornelius Date: Wed, 2 Mar 2022 16:15:12 +0000 (+0000) Subject: ICU-21816 Add ICU4C samples check to workflow for BRS "Test C Samples" X-Git-Tag: release-71-rc~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87e31395dad46cc8e34db49f68adc7d2f2e95b3d;p=icu ICU-21816 Add ICU4C samples check to workflow for BRS "Test C Samples" See #2010 --- diff --git a/.github/workflows/icu_ci.yml b/.github/workflows/icu_ci.yml index 622f41d2679..76d77d98d58 100644 --- a/.github/workflows/icu_ci.yml +++ b/.github/workflows/icu_ci.yml @@ -440,3 +440,28 @@ jobs: echo Did you forget to include the changed data files in this PR? exit 1 fi + +# Build and run ICU4C samples + icu4c-test-samples: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: ICU4C configure and build + run: | + # Perform an out-of-source build of icu4c + mkdir /tmp/icu_samples + cd icu4c/source + ./runConfigureICU Linux -prefix=/tmp/icu_samples + make install + # Reference the paths in the new build + cd samples + # To clean all the test binaries + make clean-samples-recursive + # To rebuild them all + echo "Make all samples" + PATH=$PATH:/tmp/icu_samples/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/icu_samples/lib make all-samples-recursive + # To run all tests serially + echo "Run all samples" + pwd + PATH=$PATH:/tmp/icu_samples/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tmp/icu_samples/lib make check-samples-recursive