]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ci : introduce Github Actions CI workflow (#247)
authorAdam Tazi <redacted>
Sun, 18 Jun 2023 08:15:58 +0000 (01:15 -0700)
committerGitHub <redacted>
Sun, 18 Jun 2023 08:15:58 +0000 (11:15 +0300)
commit886f1c830be4b31a3cb3fcf83626934104100dd1
tree9e1adbdd993e7edf784ea3eae0a9984c7b19ff4a
parentb817f870d22d7a5782f6e5f4f8fd2bb5254f89ec
ci : introduce Github Actions CI workflow (#247)

* Introduce Github Actions CI workflow for the ggml repo

This commit integrates a Github Actions CI workflow that compiles and tests the codebase on both Ubuntu 22.04 and macOS 12 Monterey. The workflow is triggered on pull requests against the main branch and on every push to the main branch.

To accommodate the resource constraints of the Github-hosted runners, a `GGML_NITER` environment variable is introduced, allowing tests to run within a reasonable time frame. `test-grad0.c` is modified to use this variable instead of `GGML_NLOOP`.

The workflow file includes:

- A build strategy for both Ubuntu and MacOS.
- An environment setup with variables `GGML_NLOOP` and `GGML_NITER`.
- A step to limit the number of threads used by `test2.c` for efficient execution.
- A typical build process with steps for environment creation, CMake configuration, building, and verbose testing with a timeout.

* main to master
.github/workflows/ci.yml [new file with mode: 0644]
tests/test-grad0.c