Skip to content

Commit

Permalink
add valid workflow runner
Browse files Browse the repository at this point in the history
Signed-off-by: Aryan Rajoria <[email protected]>
  • Loading branch information
aryan-rajoria committed Nov 5, 2024
1 parent e0f81d6 commit 7a714db
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 73 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ env:
IMAGE_NAME: appthreat/blintdb

jobs:
builder:
runs-on: dev1-actions2
builder-meson:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
Expand All @@ -19,6 +19,10 @@ jobs:
with:
repository: AppThreat/blint-db
path: blint-db
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master
with:
version: 1.10.0
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
IMAGE_NAME: appthreat/blintdb

jobs:
builder:
builder-vcpkg:
runs-on: dev1-actions2
permissions:
contents: write
Expand All @@ -19,6 +19,10 @@ jobs:
with:
repository: AppThreat/blint-db
path: blint-db
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master
with:
version: 1.10.0
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
Binary file removed blint.db
Binary file not shown.
5 changes: 2 additions & 3 deletions blint_db/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
# variables
DEBUG_MODE = True
# constants
CWD = Path.cwd()
TEMP_PATH = CWD / ".." / "temp"
TEMP_PATH = Path.cwd() / "temp"
WRAPDB_LOCATION = TEMP_PATH / "wrapdb"
VCPKG_LOCATION = TEMP_PATH / "vcpkg"

Expand All @@ -23,7 +22,7 @@
WRAPDB_HASH = "90fdc28c75412d99900f2ff58006de57866c63ee"
VCPKG_HASH = "e60236ee051183f1122066bee8c54a0b47c43a60"

BOM_LOCATION = CWD / ".." / "temp" / "BOM"
BOM_LOCATION = TEMP_PATH / "BOM"
BLINTDB_LOCATION = "blint.db"
CWD = Path(os.getcwd())

Expand Down
9 changes: 5 additions & 4 deletions blint_db/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import os
from pathlib import Path

from blint_db import BOM_LOCATION, DEBUG_MODE, WRAPDB_LOCATION
from blint_db import VCPKG_LOCATION, DEBUG_MODE, WRAPDB_LOCATION

HOME_DIRECTORY = Path.home()


def _create_python_dirs():
wl = WRAPDB_LOCATION
bl = BOM_LOCATION
vl = VCPKG_LOCATION

os.makedirs(wl, exist_ok=True)
os.makedirs(bl, exist_ok=True)
os.makedirs(vl, exist_ok=True)

if DEBUG_MODE:
print(f"{wl} created")
print(f"{bl} created")
print(f"{vl} created")


_create_python_dirs()
142 changes: 79 additions & 63 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
blint = "^2.2.3"
meson = "^1.6.0"

[tool.poetry.scripts]
blint-db = 'blint_db.cli:main'
Expand Down

0 comments on commit 7a714db

Please sign in to comment.