Skip to content
This repository was archived by the owner on Dec 17, 2022. It is now read-only.

Commit 6fb6a8c

Browse files
authored
feat: upgrade to process plugin schema v4 (#9)
1 parent 12df471 commit 6fb6a8c

10 files changed

+357
-209
lines changed

.github/workflows/ci.yml

+5-11
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,21 @@ jobs:
3636
# Setup
3737
- uses: actions/checkout@v2
3838

39-
- name: Install toolchain
40-
run: rustup show # This will install the toolchain from the `rust-toolchain` file
39+
- uses: dtolnay/rust-toolchain@stable
4140

4241
- name: Extract Rust release version and set CFG_RELEASE env variable
4342
run: |
4443
# See https://sed.js.org/?gist=733942438b671befe20b6e7b5dfac57f for an explanation of the regex
4544
echo "CFG_RELEASE=$(cargo --version | sed -rn 's/cargo\s(.*)\s\(.*\)/\1/p')" >> $GITHUB_ENV
4645
4746
- name: Cache cargo
48-
uses: actions/cache@v2
49-
with:
50-
path: |
51-
~/.cargo/registry
52-
~/.cargo/git
53-
target
54-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
47+
if: startsWith(github.ref, 'refs/tags/') != true
48+
uses: Swatinem/rust-cache@v1
5549

5650
# Build
5751
- name: Build release
5852
if: matrix.config.kind == 'test_release'
59-
run: cargo build --bin dprint-plugin-rustfmt --features=process --release
53+
run: cargo build --bin dprint-plugin-rustfmt --release
6054

6155
- name: Test release
6256
if: matrix.config.kind == 'test_release'
@@ -131,7 +125,7 @@ jobs:
131125
echo "Windows zip: ${{needs.build.outputs.WINDOWS_ZIP_CHECKSUM}}"
132126
133127
- name: Create plugin file
134-
run: deno run --allow-read --allow-write scripts/createPluginFile.ts
128+
run: deno run --allow-read=. --allow-write=. scripts/create_plugin_file.ts
135129

136130
- name: Get tag version
137131
id: get_tag_version

0 commit comments

Comments
 (0)