Next Generation WASM Microkernel Operating System

fix(manual): use mdbook from nix in CI (#629)

authored by

Jonas Kruckenberg and committed by
GitHub
3fe6c9b6 27222439

+15 -23
+5 -11
.github/workflows/manual.yml
··· 20 20 - uses: actions/checkout@v6 21 21 with: 22 22 fetch-depth: 0 23 - - name: Install latest mdbook 24 - run: | 25 - tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name') 26 - url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz" 27 - mkdir mdbook 28 - curl -sSL $url | tar -xz --directory=./mdbook 29 - echo `pwd`/mdbook >> $GITHUB_PATH 23 + - name: Install Nix 24 + uses: cachix/install-nix-action@v31 25 + with: 26 + github_access_token: ${{ secrets.GITHUB_TOKEN }} 30 27 - name: Build Book 31 - run: | 32 - # This assumes your book is in the root of your repository. 33 - # Just add a `cd` here if you need to change to another directory. 34 - mdbook build manual 28 + run: nix develop --command mdbook build manual 35 29 - name: Setup Pages 36 30 uses: actions/configure-pages@v5 37 31 - name: Upload artifact
+6 -6
flake.lock
··· 20 20 }, 21 21 "nixpkgs": { 22 22 "locked": { 23 - "lastModified": 1755615617, 24 - "narHash": "sha256-HMwfAJBdrr8wXAkbGhtcby1zGFvs+StOp19xNsbqdOg=", 23 + "lastModified": 1767116409, 24 + "narHash": "sha256-5vKw92l1GyTnjoLzEagJy5V5mDFck72LiQWZSOnSicw=", 25 25 "owner": "NixOS", 26 26 "repo": "nixpkgs", 27 - "rev": "20075955deac2583bb12f07151c2df830ef346b4", 27 + "rev": "cad22e7d996aea55ecab064e84834289143e44a0", 28 28 "type": "github" 29 29 }, 30 30 "original": { ··· 48 48 ] 49 49 }, 50 50 "locked": { 51 - "lastModified": 1756003222, 52 - "narHash": "sha256-lmEMhIIbjt8Wp1EYbNqCojuU9ygyDFv8Tu0X1k8qIMc=", 51 + "lastModified": 1767322002, 52 + "narHash": "sha256-yHKXXw2OWfIFsyTjduB4EyFwR0SYYF0hK8xI9z4NIn0=", 53 53 "owner": "oxalica", 54 54 "repo": "rust-overlay", 55 - "rev": "88ceedecde53e809b4bf8b5fd10d181889d9bac7", 55 + "rev": "03c6e38661c02a27ca006a284813afdc461e9f7e", 56 56 "type": "github" 57 57 }, 58 58 "original": {
+4 -6
flake.nix
··· 5 5 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 6 flake-utils.url = "github:numtide/flake-utils"; 7 7 rust-overlay = { 8 - url = "github:oxalica/rust-overlay"; 9 - inputs = { 10 - nixpkgs.follows = "nixpkgs"; 11 - }; 8 + url = "github:oxalica/rust-overlay"; 9 + inputs.nixpkgs.follows = "nixpkgs"; 12 10 }; 13 11 }; 14 12 15 13 outputs = { self, nixpkgs, rust-overlay, flake-utils, ... }: 16 14 flake-utils.lib.eachDefaultSystem (system: 17 15 let 18 - overlays = [ (import rust-overlay) ]; 19 16 pkgs = import nixpkgs { 20 - inherit system overlays; 17 + inherit system; 18 + overlays = [ (import rust-overlay) ]; 21 19 }; 22 20 rustToolchain = with pkgs; rust-bin.fromRustupToolchainFile ./rust-toolchain.toml; 23 21 in