|
1 |
| -name: 'Hello World' |
2 |
| -description: 'Greet someone' |
| 1 | +name: 'Setup' |
| 2 | +description: 'Setup Ubuntu and Clang for CI checks' |
3 | 3 | inputs:
|
4 |
| - who-to-greet: # id of input |
5 |
| - description: 'Who to greet' |
6 |
| - required: true |
7 |
| - default: 'World' |
8 |
| -outputs: |
9 |
| - random-number: |
10 |
| - description: "Random number" |
11 |
| - value: ${{ steps.random-number-generator.outputs.random-id }} |
| 4 | + build-type: # id of input |
| 5 | + description: 'Build configuration type' |
| 6 | + required: false |
| 7 | + default: 'Debug' |
12 | 8 | runs:
|
13 | 9 | using: "composite"
|
14 | 10 | steps:
|
15 |
| - - run: echo Hello ${{ inputs.who-to-greet }}. |
| 11 | + - name: Print env |
16 | 12 | shell: bash
|
17 |
| - - id: random-number-generator |
18 |
| - run: echo "::set-output name=random-id::$(echo $RANDOM)" |
| 13 | + run: | |
| 14 | + echo github.event.action: ${{ github.event.action }} |
| 15 | + echo github.event_name: ${{ github.event_name }} |
| 16 | +
|
| 17 | + - name: Install dependencies on Ubuntu |
19 | 18 | shell: bash
|
20 |
| - - run: ${{ github.action_path }}/goodbye.sh |
| 19 | + run: | |
| 20 | + echo |
| 21 | + echo "###################################################################" |
| 22 | + echo "######################### Install LLVM-11 #########################" |
| 23 | + echo "###################################################################" |
| 24 | + sudo wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add - |
| 25 | + sudo apt-add-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main' |
| 26 | + sudo apt-get update |
| 27 | + sudo apt-get install -y binutils libstdc++6 clang-11 clang-format-11 clang-tidy-11 \ |
| 28 | + llvm-11-dev cmake python3 libpng-dev libbz2-dev ninja-build |
| 29 | + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 90 |
| 30 | + sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-11 90 |
| 31 | + sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 90 |
| 32 | + echo |
| 33 | + echo "###################################################################" |
| 34 | + echo "######################## ASGE Dependencies ########################" |
| 35 | + echo "###################################################################" |
| 36 | + sudo apt-get install -y --no-install-recommends --no-install-suggests \ |
| 37 | + libtbb-dev libharfbuzz-bin libharfbuzz-dev libxrandr-dev libxxf86vm-dev \ |
| 38 | + libxi-dev libxinerama-dev libxcursor-dev libgl1-mesa-dev libglu1-mesa-dev |
| 39 | + echo |
| 40 | + echo "###################################################################" |
| 41 | + echo "######################### Install CPPCHECK ########################" |
| 42 | + echo "###################################################################" |
| 43 | + # sudo snap install cppcheck && sudo ln -s /snap/bin/cppcheck /usr/bin/cppcheck |
| 44 | + curl -sLO http://de.archive.ubuntu.com/ubuntu/pool/universe/t/tinyxml2/libtinyxml2-8_8.0.0+dfsg-2_amd64.deb \ |
| 45 | + && sudo dpkg -i libtinyxml2-8_8.0.0+dfsg-2_amd64.deb |
| 46 | + curl -sLO http://de.archive.ubuntu.com/ubuntu/pool/universe/z/z3/libz3-4_4.8.10-1ubuntu1_amd64.deb \ |
| 47 | + && sudo dpkg -i libz3-4_4.8.10-1ubuntu1_amd64.deb |
| 48 | + curl -sLO http://de.archive.ubuntu.com/ubuntu/pool/universe/z/z3/libz3-dev_4.8.10-1ubuntu1_amd64.deb \ |
| 49 | + && sudo dpkg -i libz3-dev_4.8.10-1ubuntu1_amd64.deb |
| 50 | + curl -sLO http://de.archive.ubuntu.com/ubuntu/pool/universe/c/cppcheck/cppcheck_2.3-1_amd64.deb && \ |
| 51 | + sudo dpkg -i cppcheck_2.3-1_amd64.deb |
| 52 | +
|
| 53 | + - name: Version Check |
21 | 54 | shell: bash
|
| 55 | + run: | |
| 56 | + /usr/bin/clang-11 --version |
| 57 | + /usr/bin/cppcheck --version |
| 58 | + cmake --version |
| 59 | + python3 --version |
| 60 | + ninja --version |
| 61 | +
|
| 62 | + - name: Configure |
| 63 | + shell: bash |
| 64 | + run: | |
| 65 | + export CC=${CC} |
| 66 | + export CXX=${CXX} |
| 67 | + cmake -H. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -Bbuild -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -G "Ninja" |
0 commit comments