12 name: Audit Rust vulnerabilities
13 runs-on: ubuntu-latest
15 - name: Checkout repository
16 uses: actions/checkout@v1
18 - run: cargo install cargo-audit
23 runs-on: ${{ matrix.os }}
28 os: [ubuntu-latest, windows-latest, macos-latest]
31 RUSTFLAGS: -D warnings
35 RUSTUP_MAX_RETRIES: 10
39 - name: Checkout repository
40 uses: actions/checkout@v1
42 # We need to disable the existing toolchain to avoid updating rust-docs
43 # which takes a long time. The fastest way to do this is to rename the
44 # existing folder, as deleting it takes about as much time as not doing
45 # anything and just updating rust-docs.
46 - name: Rename existing rust toolchain (Windows)
47 if: matrix.os == 'windows-latest'
48 run: Rename-Item C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc.old
50 - name: Install Rust toolchain
51 uses: actions-rs/toolchain@v1
56 components: rustfmt, rust-src
58 - name: Cache cargo registry
59 uses: actions/cache@v1
61 path: ~/.cargo/registry
62 key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
64 - name: Cache cargo index
65 uses: actions/cache@v1
68 key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
70 - name: Cache cargo target dir
71 uses: actions/cache@v1
74 key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
77 run: cargo test --no-run
83 run: cargo xtask pre-cache
85 - name: Prepare cache 2
86 if: matrix.os == 'windows-latest'
87 run: Remove-Item ./target/debug/xtask.exe, ./target/debug/deps/xtask.exe
91 runs-on: ubuntu-latest
96 - name: Checkout repository
97 uses: actions/checkout@v1
99 - name: Install Nodejs
100 uses: actions/setup-node@v1
105 working-directory: ./editors/code
108 working-directory: ./editors/code
111 working-directory: ./editors/code
113 - run: npm run package --scripts-prepend-node-path
114 working-directory: ./editors/code