Skip to content

Feature/cpu advertisement #1

Feature/cpu advertisement

Feature/cpu advertisement #1

Workflow file for this run

# Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
name: build
on: pull_request
jobs:
build:
# this is to prevent the job to run at forked projects
if: github.repository == 'aws/aws-nitro-enclaves-k8s-device-plugin'
runs-on: ubuntu-latest
steps:
- name: Extract Go version
run: |
GO_VERSION=$(grep '^go' go.mod | awk '{print $2}')
echo "GO_VERSION=$GO_VERSION" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Build
run: go build -v ./cmd/k8s-device-plugin/k8s-device-plugin.go
- name: Test
run: go test -v ./...