Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI-fix: Remove pip cache and install proper deps #1

Merged
merged 1 commit into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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