Skip to content

Commit

Permalink
CI-fix: pip install requirements and install proper deps (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Feb 18, 2024
1 parent 1b32737 commit e16863c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/codeql.yml
Expand Up @@ -5,10 +5,12 @@ on:
branches: [ trunk ]
paths:
- '**.c'
- '**codeql.yml'
pull_request:
branches: [ trunk ]
paths:
- '**.c'
- '**codeql.yml'

jobs:
analyze:
Expand All @@ -21,29 +23,28 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'

- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y libgeany-dev
sudo apt install -y geany libgtk-3-dev
pip install meson ninja
- name: Build Pinner
run: |
meson setup builddir
ninja -C builddir
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'cpp' # Use 'cpp' for C code analysis

- name: Build Pinner
run: |
meson setup builddir
ninja -C builddir
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
5 changes: 3 additions & 2 deletions .github/workflows/linux.yml
Expand Up @@ -10,12 +10,14 @@ on:
paths:
- '**.c'
- 'meson.build'
- '**linux.yml'
pull_request:
branches:
- trunk
paths:
- '**.c'
- 'meson.build'
- '**linux.yml'

jobs:
build:
Expand All @@ -33,15 +35,14 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'

- name: Install Meson and Ninja
run: pip install meson ninja

- name: Install Dependencies
run: |
sudo apt update
sudo apt install -y libgeany-dev
sudo apt install -y geany libgtk-3-dev
- name: Configure Build with Meson
run: meson setup builddir
Expand Down
3 changes: 3 additions & 0 deletions README.md
@@ -1,3 +1,6 @@
[![Linux](https://github.com/andy5995/pinner/actions/workflows/linux.yml/badge.svg)](https://github.com/andy5995/pinner/actions/workflows/linux.yml)
[![CodeQL Analysis](https://github.com/andy5995/pinner/actions/workflows/codeql.yml/badge.svg)](https://github.com/andy5995/pinner/actions/workflows/codeql.yml)

# Pinner

A [geany plugin](https://www.geany.org/support/plugins/) that enables pinning
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Expand Up @@ -2,7 +2,7 @@ project(
'pinner',
['c'],
version: '0.1.0.999',
meson_version : '>= 0.48.0',
meson_version : '>= 0.50.0',
default_options: [
'warning_level=2',
]
Expand Down

0 comments on commit e16863c

Please sign in to comment.