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 8e509db commit c48cf6e
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 \
libapparmor-dev \
libboost-iostreams-dev \
libfreetype6-dev \
libmiral-dev \
libwayland-dev \
ninja-build \
pkg-config
- name: Build
run: |
cmake -Bbuild -DCMAKE_BUILD_TYPE=Debug -GNinja src
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 ubuntu-frame -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 c48cf6e

Please sign in to comment.