Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
b3035112
Commit
b3035112
authored
Jan 14, 2024
by
Daniel Hiltgen
Browse files
Add macos cross-compile CI coverage
parent
95ad9a9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
3 deletions
+28
-3
.github/workflows/test.yaml
.github/workflows/test.yaml
+28
-3
No files found.
.github/workflows/test.yaml
View file @
b3035112
...
@@ -8,7 +8,15 @@ jobs:
...
@@ -8,7 +8,15 @@ jobs:
strategy
:
strategy
:
matrix
:
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
,
windows-latest
]
os
:
[
ubuntu-latest
,
macos-latest
,
windows-latest
]
arch
:
[
amd64
,
arm64
]
exclude
:
-
os
:
ubuntu-latest
arch
:
arm64
-
os
:
windows-latest
arch
:
arm64
runs-on
:
${{ matrix.os }}
runs-on
:
${{ matrix.os }}
env
:
GOARCH
:
${{ matrix.arch }}
steps
:
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/checkout@v4
-
uses
:
actions/setup-go@v4
-
uses
:
actions/setup-go@v4
...
@@ -33,7 +41,7 @@ jobs:
...
@@ -33,7 +41,7 @@ jobs:
-
run
:
go generate -x ./...
-
run
:
go generate -x ./...
-
uses
:
actions/upload-artifact@v4
-
uses
:
actions/upload-artifact@v4
with
:
with
:
name
:
${{ matrix.os }}-libraries
name
:
${{ matrix.os
}}-${{ matrix.arch
}}-libraries
path
:
|
path
:
|
llm/llama.cpp/build/**/lib/*
llm/llama.cpp/build/**/lib/*
lint
:
lint
:
...
@@ -41,7 +49,18 @@ jobs:
...
@@ -41,7 +49,18 @@ jobs:
strategy
:
strategy
:
matrix
:
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
,
windows-latest
]
os
:
[
ubuntu-latest
,
macos-latest
,
windows-latest
]
arch
:
[
amd64
,
arm64
]
exclude
:
-
os
:
ubuntu-latest
arch
:
arm64
-
os
:
windows-latest
arch
:
arm64
-
os
:
macos-latest
arch
:
amd64
runs-on
:
${{ matrix.os }}
runs-on
:
${{ matrix.os }}
env
:
GOARCH
:
${{ matrix.arch }}
CGO_ENABLED
:
"
1"
steps
:
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/checkout@v4
with
:
with
:
...
@@ -52,7 +71,7 @@ jobs:
...
@@ -52,7 +71,7 @@ jobs:
cache
:
false
cache
:
false
-
uses
:
actions/download-artifact@v4
-
uses
:
actions/download-artifact@v4
with
:
with
:
name
:
${{ matrix.os }}-libraries
name
:
${{ matrix.os
}}-${{ matrix.arch
}}-libraries
path
:
llm/llama.cpp/build
path
:
llm/llama.cpp/build
-
uses
:
golangci/golangci-lint-action@v3
-
uses
:
golangci/golangci-lint-action@v3
test
:
test
:
...
@@ -60,6 +79,12 @@ jobs:
...
@@ -60,6 +79,12 @@ jobs:
strategy
:
strategy
:
matrix
:
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
,
windows-latest
]
os
:
[
ubuntu-latest
,
macos-latest
,
windows-latest
]
arch
:
[
amd64
,
arm64
]
exclude
:
-
os
:
ubuntu-latest
arch
:
arm64
-
os
:
windows-latest
arch
:
arm64
runs-on
:
${{ matrix.os }}
runs-on
:
${{ matrix.os }}
steps
:
steps
:
-
uses
:
actions/checkout@v4
-
uses
:
actions/checkout@v4
...
@@ -72,7 +97,7 @@ jobs:
...
@@ -72,7 +97,7 @@ jobs:
-
run
:
go get
-
run
:
go get
-
uses
:
actions/download-artifact@v4
-
uses
:
actions/download-artifact@v4
with
:
with
:
name
:
${{ matrix.os }}-libraries
name
:
${{ matrix.os
}}-${{ matrix.arch
}}-libraries
path
:
llm/llama.cpp/build
path
:
llm/llama.cpp/build
-
run
:
go build
-
run
:
go build
-
run
:
go test -v ./...
-
run
:
go test -v ./...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment