Skip to content

Commit

Permalink
Add new build test action
Browse files Browse the repository at this point in the history
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.
36 changes: 36 additions & 0 deletions .github/workflows/buildtest.yml
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

0 comments on commit c9941c9

Please sign in to comment.