on master help sign in
ci: Merge two jobs
0f2ae35Blaž Hrastnik
.github/workflows/build.yml+4−21
@@ -98,13 +98,13 @@ jobs:
98 uses: actions/checkout@v3
98 uses: actions/checkout@v3
99
99
100 - name: Install stable toolchain
100 - name: Install stable toolchain
101− uses: helix-editor/rust-toolchain@v1
101+ uses: dtolnay/rust-toolchain@1.61
102− with:
103− profile: minimal
104− override: true
105
102
106 - uses: Swatinem/rust-cache@v2
103 - uses: Swatinem/rust-cache@v2
107
104
105+ - name: Validate queries
106+ run: cargo xtask query-check
107+
108 - name: Generate docs
108 - name: Generate docs
109 run: cargo xtask docgen
109 run: cargo xtask docgen
110
110
@@ -115,20 +115,3 @@ jobs:
115 || (echo "Run 'cargo xtask docgen', commit the changes and push again" \
115 || (echo "Run 'cargo xtask docgen', commit the changes and push again" \
116 && exit 1)
116 && exit 1)
117
117
118− queries:
119− name: Tree-sitter queries
120− runs-on: ubuntu-latest
121− steps:
122− - name: Checkout sources
123− uses: actions/checkout@v3
124−
125− - name: Install stable toolchain
126− uses: helix-editor/rust-toolchain@v1
127− with:
128− profile: minimal
129− override: true
130−
131− - uses: Swatinem/rust-cache@v2
132−
133− - name: Generate docs
134− run: cargo xtask query-check