Skip to content

Add requirements.txt #4

Add requirements.txt

Add requirements.txt #4

Workflow file for this run

name: Build gpt.c
on:
create:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-cpu:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Init submodules
run: |
git submodule update --init --recursive
- name: Install Dependencies
run: |
if [ "${{ runner.os }}" == "Linux" ]; then
sudo apt-get update && sudo apt-get install -y libomp-dev build-essential gcc gfortran make valgrind
elif [ "${{ runner.os }}" == "macOS" ]; then
brew install libomp && brew install argp-standalone && brew install valgrind && brew install gfortran
fi
- name: Install Python Dependencies
run: pip install -r requirements.txt
- name: Compile Third Party Libraries
run: |
make third_party -j
- name: Compile gpt.c
run: |
make