Skip to content

Commit

Permalink
Fixing Github action to use new installation script.
Browse files Browse the repository at this point in the history
  • Loading branch information
janpfeifer committed Nov 25, 2024
1 parent b6a2142 commit 4de06e6
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,9 @@ jobs:
- name: Install Gopjrt C library gomlx_xlabuilder and PJRT plugin
shell: bash
run: |
curl -s "https://api.github.com/repos/gomlx/gopjrt/releases/latest" \
| grep "gomlx_xlabuilder_linux_amd64.tar.gz" | grep "download_url" \
| sed 's/.*"\(https.*\)"/\1/' \
> /tmp/gopjrt_latest_release_url.txt
cat /tmp/gopjrt_latest_release_url.txt
wget --quiet --output-document=- $(cat /tmp/gopjrt_latest_release_url.txt) \
| (mkdir release ; cd release ; sudo tar -xvz)
sudo cp release/lib/libgomlx_xlabuilder.a /usr/lib/x86_64-linux-gnu
ls -lh /usr/lib/x86_64-linux-gnu/libgomlx*
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
sudo cp -r release/include/gomlx /usr/include
curl -s "https://api.github.com/repos/gomlx/gopjrt/releases/latest" \
| grep "pjrt_c_api_cpu_plugin.so.linux_amd64.gz" | grep "download_url" \
| sed 's/.*"\(https.*\)"/\1/' \
> /tmp/gopjrt_latest_release_cpu_plugin_url.txt
cat /tmp/gopjrt_latest_release_cpu_plugin_url.txt
wget --quiet --output-document=- $(cat /tmp/gopjrt_latest_release_cpu_plugin_url.txt) \
> release/pjrt_c_api_cpu_plugin.so.gz
gzip -d release/pjrt_c_api_cpu_plugin.so.gz
sudo mv release/pjrt_c_api_cpu_plugin.so /usr/lib/x86_64-linux-gnu/
ls -lh /usr/lib/x86_64-linux-gnu/pjrt_c_api*
curl -sSf https://raw.githubusercontent.com/gomlx/gopjrt/main/cmd/install_linux_amd64.sh | bash
sudo ln -sf /usr/local/lib/libpjrt* /usr/lib/x86_64-linux-gnu/
sudo ln -sf /usr/local/include/gomlx /usr/include/
- name: PreTest
run: |
go test . -test.v
Expand Down

0 comments on commit 4de06e6

Please sign in to comment.