From 406d339986c9b63bcbb6b27760c022090ec3a1cb Mon Sep 17 00:00:00 2001 From: William Yang Date: Fri, 15 Nov 2024 10:37:28 +0100 Subject: [PATCH] ci: add pre-check before mesh tests --- .github/workflows/hex_pub.yml | 2 +- .github/workflows/main.yml | 41 +++++++++++++++++++++++++++++++---- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/.github/workflows/hex_pub.yml b/.github/workflows/hex_pub.yml index d78b03a1..6865ca6f 100644 --- a/.github/workflows/hex_pub.yml +++ b/.github/workflows/hex_pub.yml @@ -4,8 +4,8 @@ on: - '*' jobs: - if: false publish: + if: false runs-on: ubuntu-latest steps: - name: Check out diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e7931894..5ed8feb7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,9 +21,42 @@ jobs: run: | rebar3 fmt -c - mac: - timeout-minutes: 60 + pre-check: needs: formatting-check + strategy: + fail-fast: false + runs-on: ubuntu-latest + timeout-minutes: 25 + strategy: + fail-fast: false + matrix: + # https://builds.hex.pm/builds/otp/ubuntu-22.04/builds.txt + otp: + - 26.2.5.3 + rebar3: + - 3.23.0 + steps: + - name: Checkout + uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + with: + submodules: recursive + - uses: erlef/setup-beam@2f0cc07b4b9bea248ae098aba9e1a8a1de5ec24c # v1.17.5 + with: + otp-version: ${{ matrix.otp }} + rebar3-version: ${{ matrix.rebar3 }} + - name: release build with debug log off + run: | + echo "github ref: ${{ github.event.ref }}" + echo "github ref: ${{ github.ref }}" + sudo sysctl -w kernel.core_pattern=core + ulimit -c unlimited + export CMAKE_BUILD_TYPE=Debug + export QUICER_TLS_VER=sys + make ci + + mac-mesh: + timeout-minutes: 60 + needs: pre-check strategy: fail-fast: false matrix: @@ -78,8 +111,8 @@ jobs: retention-days: 1 - linux: - needs: formatting-check + linux-mesh: + needs: pre-check runs-on: ubuntu-latest timeout-minutes: 25 strategy: