headers: Generate a globals.h header with global variables #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/python -m unittest discover -v -s ./scripts/headers -p '*test.py' | |
- 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/ |