Commit ca26801567e9ce19c83f132c6a116d3d25d3b8a1

Anthony Green 2023-02-09T10:31:22

Use rlgl

diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml
index 75a7c21..aa1a2ca 100644
--- a/.github/workflows/emscripten.yml
+++ b/.github/workflows/emscripten.yml
@@ -124,7 +124,7 @@ jobs:
           name: built-tests
           path: |
             ./testsuite/libffi.c*/
-  
+
   test:
     strategy:
       matrix:
@@ -161,17 +161,11 @@ jobs:
               -k ${{ matrix.browser }} \
               -s
 
-      - name: Test Report
-        uses: dorny/test-reporter@v1
-        if: success() || failure()
-        with:
-          name: pytest results ${{ matrix.bigint }}  ${{ matrix.browser }}
-          path: testsuite/emscripten/test-results/junit.xml
-          reporter: java-junit
-
-      - name: Store test results
-        uses: actions/upload-artifact@v3
+      - name: Install rlgl and run
         if: success() || failure()
-        with:
-          name: test-results
-          path: testsuite/emscripten/test-results
+        run: |
+          wget -qO - https://rl.gl/cli/rlgl-linux-amd64.tgz | \
+               tar --strip-components=2 -xvzf - ./rlgl/rlgl;
+          ./rlgl l --key=0LIBFFI-0LIBFFI-0LIBFFI-0LIBFFI https://rl.gl
+          ./rlgl e -l project=libffi -l sha=${GITHUB_SHA:0:7} -l CC='emscripten' -l build-host=${{ matrix.browser }} --policy=https://github.com/libffi/rlgl-policy.git testsuite/emscripten/test-results/junit.xml
+          exit $?