fork/helix
git clone https://git.julia.blue/fork/helix
be1bf2f9
25.07.1
1name : Build 2on : 3pull_request : 4push : 5branches : 6- master 7merge_group : 8schedule : 9- cron : "00 01 * * *" 10 11env : 12MSRV : "1.82" 13# This key can be changed to bust the cache of tree-sitter grammars. 14GRAMMAR_CACHE_VERSION : "" 15 16jobs : 17check : 18name : Check (msrv) 19runs-on : ubuntu-latest 20if : github.repository == 'helix-editor/helix' || github.event_name != 'schedule' 21steps : 22- name : Checkout sources 23uses : actions/checkout@v4 24 25- name : Install MSRV toolchain 26uses : dtolnay/rust-toolchain@master 27with : 28toolchain : ${{ env.MSRV }} 29 30- uses : Swatinem/rust-cache@v2 31with : 32shared-key : "build" 33 34- name : Cache tree-sitter grammars 35uses : actions/cache@v4 36with : 37path : runtime/grammars 38key : ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }} 39restore-keys : ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars- 40 41- name : Run cargo check 42run : cargo check 43 44test : 45name : Test Suite 46runs-on : ${{ matrix.os }} 47if : github.repository == 'helix-editor/helix' || github.event_name != 'schedule' 48timeout-minutes : 30 49env : 50RUST_BACKTRACE : 1 51HELIX_LOG_LEVEL : info 52steps : 53- name : Checkout sources 54uses : actions/checkout@v4 55 56- name : Install MSRV toolchain 57uses : dtolnay/rust-toolchain@master 58with : 59toolchain : ${{ env.MSRV }} 60 61- uses : Swatinem/rust-cache@v2 62with : 63shared-key : "build" 64 65- name : Cache tree-sitter grammars 66uses : actions/cache@v4 67with : 68path : runtime/grammars 69key : ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }} 70restore-keys : ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars- 71 72- name : Run cargo test 73run : cargo test --workspace 74 75- name : Run cargo integration-test 76run : cargo integration-test 77 78strategy : 79matrix : 80os : [ ubuntu-latest , macos-latest , windows-latest , ubuntu-24.04-arm ] 81 82lints : 83name : Lints 84runs-on : ubuntu-latest 85if : github.repository == 'helix-editor/helix' || github.event_name != 'schedule' 86steps : 87- name : Checkout sources 88uses : actions/checkout@v4 89 90- name : Install MSRV toolchain 91uses : dtolnay/rust-toolchain@master 92with : 93toolchain : ${{ env.MSRV }} 94components : rustfmt, clippy 95 96- uses : Swatinem/rust-cache@v2 97with : 98shared-key : "build" 99 100- name : Cache tree-sitter grammars 101uses : actions/cache@v4 102with : 103path : runtime/grammars 104key : ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }} 105restore-keys : ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars- 106 107- name : Run cargo fmt 108run : cargo fmt --all --check 109 110- name : Run cargo clippy 111run : cargo clippy --workspace --all-targets -- -D warnings 112 113- name : Run cargo doc 114run : cargo doc --no-deps --workspace --document-private-items 115env : 116RUSTDOCFLAGS : -D warnings 117 118docs : 119name : Docs 120runs-on : ubuntu-latest 121if : github.repository == 'helix-editor/helix' || github.event_name != 'schedule' 122steps : 123- name : Checkout sources 124uses : actions/checkout@v4 125 126- name : Install MSRV toolchain 127uses : dtolnay/rust-toolchain@master 128with : 129toolchain : ${{ env.MSRV }} 130 131- uses : Swatinem/rust-cache@v2 132with : 133shared-key : "build" 134 135- name : Cache tree-sitter grammars 136uses : actions/cache@v4 137with : 138path : runtime/grammars 139key : ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars-${{ hashFiles('languages.toml') }} 140restore-keys : ${{ runner.os }}-${{ runner.arch }}-stable-v${{ env.GRAMMAR_CACHE_VERSION }}-tree-sitter-grammars- 141 142- name : Validate queries 143run : cargo xtask query-check 144 145- name : Validate themes 146run : cargo xtask theme-check 147 148- name : Generate docs 149run : cargo xtask docgen 150 151- name : Check uncommitted documentation changes 152run : | 153 git diff 154 git diff-files --quiet \ 155 || (echo "Run 'cargo xtask docgen', commit the changes and push again" \ 156 && exit 1)