Skip to content

Commit

Permalink
Add workflow for generating headers from database
Browse files Browse the repository at this point in the history
  • Loading branch information
bwrsandman committed Sep 4, 2024
1 parent a6fe2e1 commit 9b61362
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/headers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Headers

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Create virtual environment
run: python -m venv .venv

- name: Install dependencies
run: .venv/bin/pip install -r scripts/headers/requirements.txt

- name: Run unit tests
run: .venv/bin/pytest scripts/headers/tests

- name: Run generate_headers.py script
run: .venv/bin/python scripts/headers/bw1_decomp_gen/generate_headers.py

- name: Upload generated headers as artifact
uses: actions/upload-artifact@v3
with:
name: bw1_decomp_gen_headers
path: generated_headers_output/
7 changes: 5 additions & 2 deletions scripts/headers/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
csnake
inflection
libclang
libclang

# https://gitlab.com/bwrsandman/csnake/-/tree/bwrsandman-master-patch-49783
# csnake
git+https://gitlab.com/bwrsandman/csnake.git@bwrsandman-master-patch-49783#egg=csnake

0 comments on commit 9b61362

Please sign in to comment.