-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: compile main app with clang and GCC for several versions
- Loading branch information
1 parent
e4d8007
commit 3b61739
Showing
2 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: 'Set CC and CXX env vars for the configured compiler' | ||
|
||
inputs: | ||
compiler: | ||
description: 'Use $suite-$version' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
shell: bash | ||
run: | | ||
input=${{ inputs.compiler }} | ||
split=(${input//-/ }) | ||
suite=${split[0]} | ||
version=${split[1]} | ||
case $suite in | ||
gnu) | ||
CC=gcc-$version | ||
CXX=g++-$version | ||
;; | ||
llvm) | ||
CC=clang-$version | ||
CXX=clang++-$version | ||
;; | ||
esac | ||
echo "CC=$CC" >> $GITHUB_ENV | ||
echo "CXX=$CXX" >> $GITHUB_ENV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters