Skip to content

Update GoMLX dependencies for github.com/gomlx/go-xla/cmd/pjrt_installer #264

Update GoMLX dependencies for github.com/gomlx/go-xla/cmd/pjrt_installer

Update GoMLX dependencies for github.com/gomlx/go-xla/cmd/pjrt_installer #264

Workflow file for this run

name: Tests(darwin)
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: macos-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.26.x"
- name: Test with AutoInstall CPU PJRT plugin
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go test ./compute/xla -test.v -test.count=1
- name: Install PJRT plugin
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
(cd ./cmd/pjrt_installer && go install .)
export CPU_VERSION="$(sed -n 's/.*var DefaultCPUVersion = "\(.*\)".*/\1/p' ./internal/utils/utils.go)"
sudo env GH_TOKEN=$GH_TOKEN $(go env GOPATH)/bin/pjrt_installer -plugin cpu -version "${CPU_VERSION}" -path /usr/local/lib/go-xla
- name: Test
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export LD_LIBRARY_PATH=/usr/local/lib
go test ./...