forked from ki-editor/ki-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.09 KB
/
Copy pathrust.yml
File metadata and controls
45 lines (38 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Rust
on:
merge_group:
push:
branches: ["master"]
pull_request:
branches: ["master"]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: write
env:
CARGO_TERM_COLOR: always
jobs:
ci:
runs-on: macos-latest
strategy:
matrix:
task: [check, build-all, test, install]
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v30
- name: Install rustfmt
run: rustup component add --toolchain 1.89.0-aarch64-apple-darwin rustfmt clippy rust-analyzer
- run: nix develop --command just ${{ matrix.task }}
doc:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v30
- run: nix develop --command just doc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/