Skip to content

Commit c51f4f9

Browse files
committed
initial commit
0 parents  commit c51f4f9

File tree

8 files changed

+1649
-0
lines changed

8 files changed

+1649
-0
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build]
2+
target = "wasm32-unknown-unknown"

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Release dprint-plugin-cedar
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
8+
defaults:
9+
run:
10+
shell: bash
11+
12+
jobs:
13+
build:
14+
name: build
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions-rust-lang/setup-rust-toolchain@v1
20+
with:
21+
profile: minimal
22+
target: wasm32-unknown-unknown
23+
24+
- name: Install dependencies
25+
run: cargo build --release --target wasm32-unknown-unknown
26+
27+
- name: Upload artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: dprint-plugin-cedar
31+
path: target/wasm32-unknown-unknown/release/dprint-plugin-cedar.wasm
32+
33+
release:
34+
needs: build
35+
runs-on: ubuntu-latest
36+
permissions:
37+
contents: write
38+
env:
39+
TAG_NAME: commit-${{ github.sha }}
40+
steps:
41+
- name: Download artifacts
42+
uses: actions/download-artifact@v4
43+
44+
- name: Create GitHub Release
45+
uses: softprops/action-gh-release@v2
46+
with:
47+
tag_name: ${{ env.TAG_NAME }}
48+
name: "dprint-plugin-cedar build for ${{ github.sha }}"
49+
files: target/wasm32-unknown-unknown/release/dprint-plugin-cedar.wasm
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
target/
2+
.vscode/settings.json
3+
.DS_Store

0 commit comments

Comments
 (0)