Add github ci build #5
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: CI | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
docker: | |
image: docker:19.03.12 | |
options: --privileged | |
ports: | |
- 2375:2375 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Docker | |
run: | | |
sudo service docker start | |
docker --version | |
- name: Copy .env.example to .env | |
run: | | |
cp llm-server/.env.example llm-server/.env # Adjust the path as needed | |
- name: Debug current directory and list files | |
run: | | |
pwd | |
ls -al | |
ls -al llm-server/ # Adjust this to verify the .env file | |
- name: Build and Test | |
run: | | |
make install |