Skip to content

Commit 3b4746d

Browse files
authored
A bit nicer CI config (#383)
Signed-off-by: Cervenka Dusan <[email protected]>
1 parent 78569ac commit 3b4746d

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

.circleci/config.yml

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,69 @@ version: 2.1
33
orbs:
44
win: circleci/[email protected] # The Windows orb gives you everything you need to start using the
55

6+
commands:
7+
install_dependencies:
8+
parameters:
9+
compiler:
10+
default: ""
11+
type: string
12+
steps:
13+
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh <<parameters.compiler>>
14+
run_tests:
15+
parameters:
16+
compiler:
17+
default: ""
18+
type: string
19+
steps:
20+
- run: chmod u+x run_tests.sh && ./run_tests.sh <<parameters.compiler>>
21+
622
jobs:
723
build-linux-gcc:
824
machine:
925
image: ubuntu-2204:2022.04.2 #https://circleci.com/developer/machine/image/ubuntu-2204 pick LTS
1026
steps:
1127
- checkout
12-
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh
13-
- run: chmod u+x run_tests.sh && ./run_tests.sh
28+
- install_dependencies
29+
- run_tests
1430
- store_artifacts:
1531
path: ./Release/Linux/erpcgen/erpcgen
32+
1633
build-linux-clang:
1734
machine:
1835
image: ubuntu-2204:2022.04.2 #https://circleci.com/developer/machine/image/ubuntu-2204 pick LTS
1936
steps:
2037
- checkout
21-
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh clang
22-
- run: chmod u+x run_tests.sh && ./run_tests.sh clang
38+
- install_dependencies:
39+
compiler: "clang"
40+
- run_tests:
41+
compiler: "clang"
2342
# - store_artifacts:
2443
# path: ./Release/Linux/erpcgen/erpcgen
44+
2545
build-mac-gcc:
2646
macos:
2747
xcode: 12.5.1 # https://circleci.com/docs/using-macos/#supported-xcode-versions https://en.wikipedia.org/wiki/MacOS_version_history#Releases
2848
resource_class: macos.x86.medium.gen2
2949
steps:
3050
- checkout
31-
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh
32-
- run: chmod u+x run_tests.sh && ./run_tests.sh
51+
- install_dependencies
52+
- run_tests
3353
- store_artifacts:
3454
path: ./Release/Darwin/erpcgen/erpcgen
55+
3556
build-mac-clang:
3657
macos:
3758
xcode: 12.5.1 # https://circleci.com/docs/using-macos/#supported-xcode-versions https://en.wikipedia.org/wiki/MacOS_version_history#Releases
3859
resource_class: macos.x86.medium.gen2
3960
steps:
4061
- checkout
41-
- run: chmod u+x install_dependencies.sh && ./install_dependencies.sh clang
42-
- run: chmod u+x run_tests.sh && ./run_tests.sh clang
62+
- install_dependencies:
63+
compiler: "clang"
64+
- run_tests:
65+
compiler: "clang"
4366
# - store_artifacts:
4467
# path: ./Release/Darwin/erpcgen/erpcgen
68+
4569
build-windows-mingw:
4670
executor:
4771
name: win/default
@@ -53,6 +77,7 @@ jobs:
5377
- run: .\mingw64\opt\bin\python3.exe .\test\run_unit_tests.py -m"..\\..\\mingw64\\bin\\mingw32-make"
5478
# - store_artifacts:
5579
# path: ./Release/MINGW64/erpcgen/erpcgen.exe
80+
5681
build-windows-VS:
5782
executor:
5883
name: win/default
@@ -66,6 +91,7 @@ jobs:
6691
- run: powershell.exe "& 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe' .\erpcgen\VisualStudio_v14\erpcgen.sln /property:Configuration=Release"
6792
- store_artifacts:
6893
path: ./erpcgen/VisualStudio_v14/Release/erpcgen.exe
94+
6995
workflows:
7096
build-workflow:
7197
jobs:

0 commit comments

Comments
 (0)