Skip to content

Commit

Permalink
ci: add TICS integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Saviq committed May 29, 2024
1 parent cf3c7c5 commit ff37ab2
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/tics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: TICS

on:
push:
branches:
- main

jobs:
CI:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo add-apt-repository --yes ppa:mir-team/dev
sudo apt install --yes \
build-essential \
cmake \
google-mock \
libboost-dev \
libgtest-dev \
libwayland-dev \
ninja-build \
pkg-config
- name: Build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -GNinja .
cmake --build build
- name: Run TICS analysis
env:
TICSAUTHTOKEN: ${{ secrets.TICSAUTHTOKEN }}
run: |
. <(curl --silent --show-error "https://canonical.tiobe.com/tiobeweb/TICS/api/public/v1/fapi/installtics/Script?cfg=default&platform=linux&url=https://canonical.tiobe.com/tiobeweb/TICS/")
TICSQServer -project wlcs -tmpdir /tmp/tics -branchdir .
- name: Store TICS processing data
uses: actions/upload-artifact@v4
with:
name: TICS-data
path: /tmp/tics/ticstmpdir

0 comments on commit ff37ab2

Please sign in to comment.