Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information