Update shared #1
Workflow file for this run
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
name: test hwloc-go | |
on: | |
pull_request: [] | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test hwloc-go | |
runs-on: ubuntu-latest | |
container: | |
image: golang:bookworm | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ^1.21 | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get install -y locales autoconf libtool automake build-essential | |
- name: Install hwloc | |
run: | | |
git clone https://github.com/open-mpi/hwloc /opt/hwloc && \ | |
cd /opt/hwloc && \ | |
./autogen.sh && \ | |
./configure --enable-static --disable-shared LDFLAGS="-static" && \ | |
make LDFLAGS=-all-static && \ | |
make install && ldconfig /usr/local/lib | |
- name: Test | |
run: go test -v ./... |