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

Commit

Permalink
feat: upgrade to process plugin schema v4 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Mar 26, 2022
1 parent 12df471 commit 6fb6a8c
Show file tree
Hide file tree
Showing 10 changed files with 357 additions and 209 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Expand Up @@ -36,27 +36,21 @@ jobs:
# Setup
- uses: actions/checkout@v2

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

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

# Build
- name: Build release
if: matrix.config.kind == 'test_release'
run: cargo build --bin dprint-plugin-rustfmt --features=process --release
run: cargo build --bin dprint-plugin-rustfmt --release

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

- name: Get tag version
id: get_tag_version
Expand Down

0 comments on commit 6fb6a8c

Please sign in to comment.