-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.4 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: build
on:
push:
branches: [ "stable", "main", "workflows" ]
pull_request:
branches: [ "stable", "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
build_type: [Release]
compiler: [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
steps:
- uses: actions/checkout@v4
with:
repository: LuaJIT/LuaJIT
path: LuaJIT
- name: Build and install LuaJIT
working-directory: ${{ github.workspace }}/LuaJIT
run: |
export MACOSX_DEPLOYMENT_TARGET=14.4
make CC=${{ matrix.compiler.c }} -j4 && sudo make install
- uses: actions/checkout@v4
with:
path: lua-cgemma
- name: Configure CMake
run: >
cmake -B ${{ github.workspace }}/lua-cgemma/build
-DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }}
-DCMAKE_C_COMPILER=${{ matrix.compiler.c }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}/lua-cgemma
- name: Build and install lua-cgemma
working-directory: ${{ github.workspace }}/lua-cgemma/build
run: make -j4 && sudo make install
- name: Test cgemma module
shell: bash
run: luajit -e 'require("cgemma").info()'
- name: Test gemma.compress_weights
shell: bash
run: gemma.compress_weights --help