Skip to content

goo

goo #38

Workflow file for this run

name: Go rocm-smi Build Tests
on:
push:
tags:
- '*'
branches:
- 'main'
- 'ci-fix-attempts'
jobs:
build:
runs-on: ubuntu-latest
env:
CGO_ENABLED: 1
GOOS: linux
GOARCH: amd64
steps:
- uses: actions/checkout@v3
# libdrm is required by kfd_ioctl.h
- name: Install software
run: sudo apt install golang libdrm-dev build-essential
- name: Print Go directory
run: |
echo $(readlink -f $(which go))
echo -- "-- $CGO_ENABLED --"
echo $(readlink -f $(which gcc))
echo $(readlink -f $(which clang))
- name: Install c-for-go
run: |
export PATH=$(go env GOTOOLDIR):$PATH
go mod download github.com/NVIDIA/go-nvml
go get github.com/xlab/c-for-go
go install github.com/xlab/c-for-go
sudo cp $(go env GOPATH)/bin/c-for-go /usr/local/bin
- name: Get depdencies
run: go get
- name: Generate
run: make
- name: Build
run: make build
# publish:
# runs-on: ubuntu-latest
# needs:
# - build-1-18
# - build-1-17
# - build-1-16
# steps:
# - uses: actions/checkout@v3
#
# - name: Set up Go
# uses: actions/setup-go@v3
# with:
# go-version: 1.1
#
# - name: Publish
# run: |
# export TAG=$(git describe --tags)
# go list -m github.com/ClusterCockpit/go-rocm-smi/pkg/rocm_smi@${TAG}