Skip to content

Commit

Permalink
CI: add more configs
Browse files Browse the repository at this point in the history
  • Loading branch information
pjonsson committed Nov 2, 2023
1 parent e2e6e38 commit bb12ccd
Showing 1 changed file with 49 additions and 16 deletions.
65 changes: 49 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,61 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
build_cfg: [{"flags":
'{ "QMAKESPEC": "linux-gcc-no-math",
"EVAL": "CXX=false && touch src/math.h src/float.h",
"CFLAGS": "-ffreestanding -DCBOR_NO_FLOATING_POINT -Os",
"LDFLAGS": "-Wl,--no-undefined",
"LDLIBS": ""
}',
build_cfg: [
{ "name": "gcc-no-math",
"flags":
'{ "QMAKESPEC": "linux-gcc-no-math",
"EVAL": "CXX=false && touch src/math.h src/float.h",
"CFLAGS": "-ffreestanding -DCBOR_NO_FLOATING_POINT -Os",
"LDFLAGS": "-Wl,--no-undefined",
"LDLIBS": ""
}',
},
{ "name": "gcc-freestanding",
"flags":
'{ "QMAKESPEC": "linux-gcc-freestanding",
"EVAL": "CXX=false",
"CFLAGS": "-ffreestanding -Os",
"LDFLAGS": "-Wl,--no-undefined -lm"
}',
},
{ "name": "clang",
"flags":
'{ "QMAKESPEC": "linux-clang",
"EVAL": "CC=clang && CXX=clang++",
"CFLAGS": "-Oz",
"LDFLAGS: "-Wl,--no-undefined -lm",
"QMAKEFLAGS="-config release",
"MAKEFLAGS": "-s",
"TESTARGS": "-silent"
}',
},
{ "name": "linux-g++",
"flags":
'{ "QMAKESPEC": "linux-g++",
"EVAL": "CC=gcc && CXX=g++",
"CFLAGS": "-Os",
"LDFLAGS": "-Wl,--no-undefined -lm",
"QMAKEFLAGS": "-config release",
"QT_NO_CPU_FEATURE":"rdrnd"
}'
}
]
include:
- os: macos-latest
build_cfg: {"flags":
'{ "QMAKESPEC": "macx-clang",
"CFLAGS": "-Oz",
"QMAKEFLAGS": "-config debug",
"MAKEFLAGS": "-s",
"TESTARGS": "-silent",
"PATH": "/usr/local/opt/qt5/bin:$PATH",
}'}
build_cfg: { "name": "clang",
"flags":
'{ "QMAKESPEC": "macx-clang",
"CFLAGS": "-Oz",
"QMAKEFLAGS": "-config debug",
"MAKEFLAGS": "-s",
"TESTARGS": "-silent",
"PATH": "/usr/local/opt/qt5/bin:$PATH"
}'
}

# Default job name is too long to be visible in the "Checks" tab.
name: ${{ matrix.os }}/${{ matrix.build_cfg }}
name: ${{ matrix.os }}/${{ matrix.build_cfg.name }}
# The type of runner that the job will run on
runs-on: ${{ matrix.os }}
steps:
Expand Down

0 comments on commit bb12ccd

Please sign in to comment.