Skip to content
Snippets Groups Projects
  1. Mar 05, 2025
  2. Jan 29, 2025
    • STEVAN Antoine's avatar
      refactor CI and Makefile for Nushell installation (!192) · 5511404f
      STEVAN Antoine authored
      the idea is to make the installation of Nushell easier to maintain, especially regarding versions, currently pinned to `0.95.0`
      
      > successful run on GitHub: [13032726635](https://github.com/dragoon-rs/komodo/actions/runs/13032726635)
      
      this is also to allow easier testing locally with the same Nushell version as in the CI, e.g.
      ```bash
      # install in `~/.local/bin/` and have multiple versions
      make install-nu
      
      hash=$(/tmp/nu --no-config-file --commands 'version | get commit_hash')
      nu_bin=$"$HOME/.local/bin/nu-$hash"
      cp /tmp/nu $nu_bin
      
      make NU=$nu_bin show test
      ```
      or
      ```bash
      # install in the repo and overwrite each time
      make NU_DEST=. install-nu
      make NU=./nu show test
      ```
      
      # changelog
      - Makefile
        - split the global `.PHONY` rule into _atomic_ rules next to each _phony_ rule
        - define `NU` and `NU_FLAGS` to allow changing which and how Nushell runs
        - define `NU_ARCH`, `NU_VERSION`, `NU_BUILD` and `NU_DEST` for Nushell installation
        - tweak the output of `make show` a bit
        - add `print-%` rules to print `Makefile` variables, e.g. `make print-NU_FLAGS` would print `--no-config-file`
        - add `make install-nu` to replace the ones from the CIs
      - GitLab CI
        - use `make install-nu`
        - export `PATH` with `make print-NU_DEST`
      - GitHub CI 
        - use `make install-nu` instead of [github.com:hustcer/setup-nu](https://github.com/hustcer/setup-nu)
        - export `PATH` with `make print-NU_DEST` and `GITHUB_ENV`
      5511404f
  3. Jul 05, 2024
  4. May 29, 2024
  5. Mar 26, 2024
  6. Mar 21, 2024
  7. Mar 20, 2024
  8. Jan 19, 2024
  9. Jan 17, 2024
    • STEVAN Antoine's avatar
      test binary module and rename things for clarity (dragoon/komodo!18) · 6133eda1
      STEVAN Antoine authored
      wait for !17
      
      ## changelog
      - add `bytes from_int: [int -> binary, list<int> -> binary]` to `binary.nu`
      - add `bytes to_int: binary -> list<int>` to `binary.nu`
      - add `tests/binary.nu` to test `binary.nu`
      - run `tests/binary.nu` in the CI
      - for clarity
        - rename `BYTES` to `FILE` in `tests/cli.nu`
        - rename `bytes` to `input` in `komodo.nu`
      6133eda1
  10. Jan 10, 2024
    • STEVAN Antoine's avatar
      test CLI app with Nushell (dragoon/komodo!11) · 964b9847
      STEVAN Antoine authored
      this MR
      - uses the Nushell script in the README to test the application in a real CLI context
      - bumps the Rust toolchain to 1.72.1
      - installs Nushell version 0.89.0 into the CI
      - runs the test script
      964b9847
  11. Dec 01, 2023
Loading