Skip to content

Commit

Permalink
main.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz committed May 27, 2024
1 parent ab06abe commit 8e16486
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 17 deletions.
54 changes: 38 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,22 @@ on:
branches:
- main
jobs:
build:
build-linux:
name: Build
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
include:
- os: windows-latest
install_dependencies: choco install make
shell: cmd
platforms:
- windows/amd64
- os: ubuntu-latest
install_dependencies: sudo apt-get update && sudo apt-get install build-essential
shell: bash
platforms:
- linux/arm64
- linux/amd64
os:
- ubuntu-latest
platforms:
- linux/arm64
- linux/amd64
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Dependencies
id: dependencies
run: ${{ matrix.install_dependencies }}
run: sudo apt-get update && sudo apt-get install build-essential
- name: Build
id: build
run: |
Expand All @@ -50,4 +42,34 @@ jobs:
- name: llama2-tasks-test
run: ./llama2-tasks-test
- name: grok1-tasks-test
run: ./grok1-tasks-test
run: ./grok1-tasks-test

build-windows:
name: Build
runs-on: windows-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Dependencies
id: dependencies
run: choco install make
- name: Build
id: build
run: |
make dllama
make dllama-api
make funcs-test
make quants-test
make transformer-test
make llama2-tasks-test
make grok1-tasks-test
- name: funcs-test
run: ./funcs-test
- name: quants-test
run: ./quants-test
- name: transformer-test
run: ./transformer-test
- name: llama2-tasks-test
run: ./llama2-tasks-test
- name: grok1-tasks-test
run: ./grok1-tasks-test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CXXFLAGS = -std=c++11 -Werror -O3 -march=native -mtune=native
ifeq ($(OS),Windows_NT)
LIBS = -lws2_32 # or -lpthreadGC2 if needed
else
LIBS = -lpthread
LIBS = -lpthread
endif

utils: src/utils.cpp
Expand Down

0 comments on commit 8e16486

Please sign in to comment.