Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,37 @@ jobs:
lfs: true
ref: ${{ inputs.revision || github.ref }}

- uses: cachix/install-nix-action@v30
- uses: Gr1N/setup-poetry@v9

- name: Setup Python
uses: actions/setup-python@v5
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
install_url: https://releases.nixos.org/nix/nix-2.24.11/install
python-version: '3.12'
cache: poetry

- name: Get source
uses: ./.github/actions/get-src
with:
load_submodules: "true"
third_party: "none"

- name: Build
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'

- name: Install dependencies
run: |
nix develop ./build-scripts/devenv#docs --command bash -c '
npm install -g @mermaid-js/mermaid-cli@11.6.0 && \
python3.12 -m pip install poetry && \
pushd doc/website/ && \
poetry install --no-root && \
popd && \
ruby ./tools/ya-build/ya-build config && \
ninja -v -C build genvm/docs
'
popd

- name: Build
run: |
./tools/ya-build/ya-build config
ninja -v -C build genvm/docs

- name: Checkout target repository
uses: actions/checkout@v4
Expand Down
21 changes: 0 additions & 21 deletions build-scripts/devenv/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,27 +55,6 @@
export LD_LIBRARY_PATH="${toString pkgs.xz.out}/lib:${toString pkgs.zlib.out}/lib:${toString pkgs.stdenv.cc.cc.lib}/lib:${toString pkgs.glibc}/lib:$LD_LIBRARY_PATH"
'';
};

devShells.docs = pkgs.mkShell {
packages = with pkgs; [
python312
poetry

ninja
ruby

xz
zlib
glibc

mermaid-cli
];

shellHook = ''
export PATH="$(pwd)/tools/ya-build:$(pwd)/tools/git-third-party:$PATH"
export LD_LIBRARY_PATH="${toString pkgs.xz.out}/lib:${toString pkgs.zlib.out}/lib:${toString pkgs.glibc}/lib:$LD_LIBRARY_PATH"
'';
};
}
);
}
2 changes: 1 addition & 1 deletion build-scripts/ya-build-plugins/src/webget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def extract_tar(base_dir, path, trim_first: true)
if path.to_s.end_with?('.xz')
require 'rubygems/package'
begin
Gem::Specification::find_by_name('ruby-xz')
Gem::Specification::find_by_name('ruby-xz', '1.0.3')
rescue Gem::LoadError
require 'rubygems/commands/install_command'
cmd = Gem::Commands::InstallCommand.new
Expand Down