]> granicus.if.org Git - icu/commitdiff
ICU-21816 Add ICU4C samples check to workflow for BRS "Test C Samples"
authorCraig Cornelius <cwcornelius@gmail.com>
Wed, 2 Mar 2022 16:15:12 +0000 (16:15 +0000)
committerCraig Cornelius <cwcornelius@gmail.com>
Wed, 2 Mar 2022 17:25:52 +0000 (09:25 -0800)
See #2010

.github/workflows/icu_ci.yml

index 622f41d26799c9e00f4be4ce86c3f8943895b79e..76d77d98d58726f923150d9d0775602e6978c921 100644 (file)
@@ -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