From 6ca2588980585593e4cbcb67735612af9b24d63f Mon Sep 17 00:00:00 2001 From: yomnes0 <127947185+yomnes0@users.noreply.github.com> Date: Thu, 29 Feb 2024 09:39:45 +0100 Subject: [PATCH 1/3] [build] create a github action for big endian compilation --- .github/workflows/s390x-focal.yaml | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/s390x-focal.yaml diff --git a/.github/workflows/s390x-focal.yaml b/.github/workflows/s390x-focal.yaml new file mode 100644 index 000000000..8b9d182b6 --- /dev/null +++ b/.github/workflows/s390x-focal.yaml @@ -0,0 +1,39 @@ +name: QEMU to run s390x-focal + +on: + push: + workflow_dispatch: + +jobs: + Tests: + runs-on: ubuntu-latest + steps: + - name: Setup multiarch/qemu-user-static + run: | + docker run --rm --privileged multiarch/qemu-user-static:register --reset + - name: ubuntu-core:s390x-focal + uses: docker://multiarch/ubuntu-core:s390x-focal + with: + args: > + bash -c + "uname -a && + lscpu | grep Endian + " + - name: Checkout + uses: actions/checkout@v3 + - name: configure + uses: docker://multiarch/ubuntu-core:s390x-focal + with: + args: > + bash -c + "apt-get -y update && + export DEBIAN_FRONTEND=noninteractive && + export TZ=Etc/UTC && + apt-get -y install tzdata && + uname -a && + lscpu | grep Endian && + apt-get -y install cmake g++ libssl-dev git && + mkdir _build && cd _build && + cmake ../ -DENABLE_STDCXX_SYNC=ON -DENABLE_ENCRYPTION=ON -DENABLE_UNITTESTS=ON -DENABLE_BONDING=ON -DENABLE_TESTING=ON -DENABLE_EXAMPLES=ON -DENABLE_CODE_COVERAGE=ON && + cmake --build ./ && + ./test-srt -disable-ipv6" From f7df3bb3e52bd2544634e51a6422af493b78e28e Mon Sep 17 00:00:00 2001 From: yomnes0 <127947185+yomnes0@users.noreply.github.com> Date: Mon, 4 Mar 2024 10:37:31 +0100 Subject: [PATCH 2/3] [build] Remove useless options for this build --- .github/workflows/s390x-focal.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/s390x-focal.yaml b/.github/workflows/s390x-focal.yaml index 8b9d182b6..2d8073879 100644 --- a/.github/workflows/s390x-focal.yaml +++ b/.github/workflows/s390x-focal.yaml @@ -34,6 +34,6 @@ jobs: lscpu | grep Endian && apt-get -y install cmake g++ libssl-dev git && mkdir _build && cd _build && - cmake ../ -DENABLE_STDCXX_SYNC=ON -DENABLE_ENCRYPTION=ON -DENABLE_UNITTESTS=ON -DENABLE_BONDING=ON -DENABLE_TESTING=ON -DENABLE_EXAMPLES=ON -DENABLE_CODE_COVERAGE=ON && + cmake ../ -DENABLE_ENCRYPTION=ON -DENABLE_UNITTESTS=ON -DENABLE_BONDING=ON -DENABLE_TESTING=ON -DENABLE_EXAMPLES=ON && cmake --build ./ && ./test-srt -disable-ipv6" From dc694cc87fb23504db952a5c0b21037646197770 Mon Sep 17 00:00:00 2001 From: yomnes0 <127947185+yomnes0@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:14:12 +0100 Subject: [PATCH 3/3] [build] Fix action triggers --- .github/workflows/s390x-focal.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/s390x-focal.yaml b/.github/workflows/s390x-focal.yaml index 2d8073879..f1b6c7508 100644 --- a/.github/workflows/s390x-focal.yaml +++ b/.github/workflows/s390x-focal.yaml @@ -2,7 +2,9 @@ name: QEMU to run s390x-focal on: push: - workflow_dispatch: + branches: [ master ] + pull_request: + branches: [ master ] jobs: Tests: