Skip to content

Commit

Permalink
ci: add pre-check before mesh tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhuyan committed Nov 15, 2024
1 parent 2fb4843 commit 65a5c98
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hex_pub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
- '*'

jobs:
if: false
publish:
if: false
runs-on: ubuntu-latest
steps:
- name: Check out
Expand Down
39 changes: 35 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,40 @@ 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
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:
Expand Down Expand Up @@ -78,8 +109,8 @@ jobs:
retention-days: 1


linux:
needs: formatting-check
linux-mesh:
needs: pre-check
runs-on: ubuntu-latest
timeout-minutes: 25
strategy:
Expand Down

0 comments on commit 65a5c98

Please sign in to comment.