Update implementation that contains faster weights loading on NVIDIA. #395
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: documentation | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install bazelisk | |
run: | | |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.21.0/bazelisk-linux-amd64" | |
mkdir -p "${GITHUB_WORKSPACE}/bin/" | |
mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel" | |
chmod +x "${GITHUB_WORKSPACE}/bin/bazel" | |
- name: Install Swift dependencies | |
run: | | |
sudo apt update | |
sudo apt -y install clang libicu-dev | |
wget https://download.swift.org/swift-5.10.1-release/ubuntu2204/swift-5.10.1-RELEASE/swift-5.10.1-RELEASE-ubuntu22.04.tar.gz | |
tar xzf swift-5.10.1-RELEASE-ubuntu22.04.tar.gz | |
echo "$(pwd)/swift-5.10.1-RELEASE-ubuntu22.04/usr/bin" >> $GITHUB_PATH | |
- name: Setup clang | |
run: | | |
sudo apt -y install libpng-dev libjpeg-dev libatlas-base-dev libblas-dev libgsl-dev clang llvm libdispatch-dev libomp-dev liblinear-dev libfftw3-dev libtesseract-dev libglfw3-dev | |
./bazel/setup_clang.sh | |
echo "build --config=clang" >> "${GITHUB_WORKSPACE}/.bazelrc.local" | |
- name: Clean up documentation branch | |
run: | | |
git branch -D documentation || true | |
git checkout -b documentation | |
- name: Run docc | |
run: | | |
cd "${GITHUB_WORKSPACE}" && ./scripts/docc.sh | |
- name: Add and commit documentation | |
run: | | |
git config --global user.email "docbot@github.com" | |
git config --global user.name "docbot" | |
cd "${GITHUB_WORKSPACE}" && git add "docs/*" && git commit -m "Update docs." | |
- name: Push the new branch | |
run: | | |
cd "${GITHUB_WORKSPACE}" && git push --force origin documentation:documentation | |