diff --git a/.github/workflows/tics.yaml b/.github/workflows/tics.yaml new file mode 100644 index 0000000..65216db --- /dev/null +++ b/.github/workflows/tics.yaml @@ -0,0 +1,44 @@ +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 . + cmake --build build + + - name: Install TICS tooling + 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/") + + - name: Run TICS analysis + run: | + TICSQServer -project ubuntu-frame -tmpdir /tmp/tics -branchdir . + 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