|
| 1 | +name: Run Tests |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - master |
| 7 | + pull_request: |
| 8 | + |
| 9 | +jobs: |
| 10 | + run-tests: |
| 11 | + name: "Test (${{ matrix.ANDROID_ABI }})" |
| 12 | + runs-on: ubuntu-latest |
| 13 | + |
| 14 | + strategy: |
| 15 | + matrix: |
| 16 | + ANDROID_ABI: ["armeabi-v7a", "arm64-v8a", "x86", "x86_64"] |
| 17 | + |
| 18 | + steps: |
| 19 | + - name: Checkout code |
| 20 | + uses: actions/checkout@v4 |
| 21 | + with: |
| 22 | + submodules: true |
| 23 | + |
| 24 | + - name: Install dependencies |
| 25 | + run: sudo apt install gperf gettext autopoint |
| 26 | + |
| 27 | + - name: Running autogen.sh in unibreak |
| 28 | + working-directory: src/unibreak |
| 29 | + run: NOCONFIGURE=1 ./autogen.sh |
| 30 | + |
| 31 | + - name: Running autogen.sh in fribidi |
| 32 | + working-directory: src/fribidi |
| 33 | + run: NOCONFIGURE=1 ./autogen.sh |
| 34 | + |
| 35 | + - name: Running autogen.sh in fontconfig |
| 36 | + working-directory: src/fontconfig |
| 37 | + run: NOCONFIGURE=1 ./autogen.sh |
| 38 | + |
| 39 | + - name: Running autogen.sh in ass |
| 40 | + working-directory: src/ass |
| 41 | + run: ./autogen.sh |
| 42 | + |
| 43 | + - name: Running buildconf.sh in expat |
| 44 | + working-directory: src/expat/expat |
| 45 | + run: ./buildconf.sh |
| 46 | + |
| 47 | + - name: Create build directory |
| 48 | + run: mkdir build |
| 49 | + |
| 50 | + - name: Configure CMake |
| 51 | + working-directory: build |
| 52 | + run: | |
| 53 | + cmake \ |
| 54 | + -DANDROID_ABI=${{ matrix.ANDROID_ABI }} \ |
| 55 | + -DANDROID_PLATFORM=android-21 \ |
| 56 | + -DANDROID_NDK=${ANDROID_NDK_ROOT} \ |
| 57 | + -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake \ |
| 58 | + -G Ninja \ |
| 59 | + .. |
| 60 | +
|
| 61 | + - name: Build |
| 62 | + working-directory: build |
| 63 | + run: cmake --build . |
0 commit comments