Skip to content

Commit

Permalink
Parallelize Flavor and Types
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Feb 21, 2025
1 parent fccf581 commit facce89
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ jobs:
needs: pack
if: needs.pack.outputs.c-code-changes

strategy:
matrix:
flavor: [jit, emu]
fail-fast: false

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/[email protected]
- uses: ./.github/actions/build-base-image
Expand All @@ -392,7 +397,7 @@ jobs:
- name: Build Erlang/OTP flavors and types
run: |
TYPES="opt debug lcnt asan gcov valgrind"
FLAVORS="emu jit"
FLAVORS="${{ matrix.flavor }}"
for TYPE in ${TYPES}; do
for FLAVOR in ${FLAVORS}; do
echo "::group::{TYPE=$TYPE FLAVOR=$FLAVOR}"
Expand All @@ -404,19 +409,22 @@ jobs:
done
done
- name: Build Erlang/OTP JIT Win32 ABI
if: ${{ matrix.flavor == 'jit' }}
run: >
docker run otp './configure CFLAGS="$CFLAGS -DERTS_JIT_ABI_WIN32=1" &&
make && make TYPE=debug &&
cerl -noshell -s init stop && cerl -debug -noshell -s init stop'
- name: Build Erlang/OTP with LTTNG
if: ${{ matrix.flavor == 'jit' }}
run: >
docker run otp 'sudo apt-get install -y lttng-tools &&
./configure --enable-dynamic-trace=lttng &&
make && make TYPE=debug &&
cerl -noshell -s init stop && cerl -debug -noshell -s init stop'
- name: Start Erlang with various start options
if: ${{ matrix.flavor == 'jit' }}
run: |
OPTIONS=("+JPperf true" "+JMsingle true" "+JDdump true")
for OPTION in "${OPTIONS[@]}"; do
Expand Down

0 comments on commit facce89

Please sign in to comment.