diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a184415..bd9feeee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,24 +36,43 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: sudo apt-get update && sudo apt-get install qemu binfmt-support qemu-user-static - - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - - run: make s390 + with: { fetch-depth: 2 } + - id: check + run: /bin/bash test/check.sh '^test|^src' + - if: steps.check.outputs.MATCH == 1 + run: sudo apt-get update && sudo apt-get install qemu binfmt-support qemu-user-static + - if: steps.check.outputs.MATCH == 1 + run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + - if: steps.check.outputs.MATCH == 1 + run: make s390 armhf: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: sudo apt-get update && sudo apt-get install qemu binfmt-support qemu-user-static - - run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - - run: make armhf + with: { fetch-depth: 2 } + - id: check + run: /bin/bash test/check.sh '^test|^src' + - if: steps.check.outputs.MATCH == 1 + run: sudo apt-get update && sudo apt-get install qemu binfmt-support qemu-user-static + - if: steps.check.outputs.MATCH == 1 + run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + - if: steps.check.outputs.MATCH == 1 + run: make armhf linux2: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: sudo apt-get update ; sudo apt-get install libmbedtls-dev valgrind - - run: make unamalgamated - - run: make valgrind - - run: make mg_prefix + with: { fetch-depth: 2 } + - id: check + run: /bin/bash test/check.sh '^test|^src' + - if: steps.check.outputs.MATCH == 1 + run: sudo apt-get update ; sudo apt-get install libmbedtls-dev valgrind + - if: steps.check.outputs.MATCH == 1 + run: make unamalgamated + - if: steps.check.outputs.MATCH == 1 + run: make valgrind + - if: steps.check.outputs.MATCH == 1 + run: make mg_prefix examples: runs-on: ubuntu-latest steps: