Skip to content

Commit 5d91b61

Browse files
author
Chris Friedt
committed
ci: add a simple github action that is run on pull-requests to main
Add a simple github action that runs on every pull-request to the `main` branch. This checks that librpmi and sources can be built and tests on Ubuntu and macos. The `fail-fast` test strategy is disabled, so that both build targets can be run. If either of the build targets fail, then the job fails. Additionally, since librpmi CI is quite fast, add a 2 minute timeout, since (currently) an invalid service group will cause the implementation to spin infinitely. Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
1 parent a3fd7f6 commit 5d91b61

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/unit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Unit
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- reopened
11+
- synchronize
12+
branches:
13+
- main
14+
15+
jobs:
16+
unit-test:
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ubuntu-24.04, macos-latest]
22+
steps:
23+
- uses: actions/checkout@v4
24+
- shell: bash
25+
timeout-minutes: 2
26+
run: |
27+
make -j check LIBRPMI_TEST=y

0 commit comments

Comments
 (0)