-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Eoghan Russell <[email protected]>
- Loading branch information
Eoghan Russell
committed
Feb 27, 2024
1 parent
85e8f62
commit c9941c9
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Go-build-and-test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 8 * * 0" # every sunday | ||
|
||
jobs: | ||
build-test: | ||
strategy: | ||
matrix: | ||
go-version: [1.21.x] | ||
os: [ubuntu-latest] | ||
goos: [linux] | ||
goarch: [amd64, arm64] | ||
subproject: [ipu-plugin, ipu-device-plugin] # Add more subprojects as needed | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
GO111MODULE: on | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build each subproject | ||
run: | | ||
for subproject in ${{ matrix.subproject }}; do | ||
cd "$subproject" | ||
make | ||
cd .. | ||
done |