-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support embed sass * feat: add plugin sass config * fix: support for different systems * feat: transform hook * fix: postinstall * feat: add plugin-sass ci * feat: add test case * fix: ci * fix: ci error * chore: update package lock * feat: resolve download sass-embedded * feat: remove unused files * fix: windows not found file * fix: test ci * fix: lint * fix: test ci --------- Co-authored-by: brightwu <[email protected]>
- Loading branch information
Showing
31 changed files
with
1,227 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Plugin Sass CI | ||
on: | ||
pull_request: | ||
paths: | ||
- 'rust-plugins/**' | ||
|
||
jobs: | ||
call-rust-plugin-sass-build: | ||
uses: ./.github/workflows/rust-plugin-build.yaml | ||
with: | ||
root: rust-plugins/sass | ||
name: plugin-sass | ||
|
||
check-plugin-artifacts: | ||
name: Check Plugin Artifacts | ||
runs-on: ubuntu-latest | ||
needs: call-rust-plugin-sass-build | ||
steps: | ||
# download rust plugin sass artifacts | ||
- uses: actions/download-artifact@v3 | ||
id: download-plugin-sass-linux-x64-gnu | ||
with: | ||
name: ${{ github.sha }}-linux-x64-gnu-plugin-sass | ||
path: ./rust-plugins/sass/npm/linux-x64-gnu | ||
- name: List Files | ||
run: ls -l ./rust-plugins/sass/npm/linux-x64-gnu/index.farm | ||
|
||
- uses: actions/download-artifact@v3 | ||
id: download-darwin-x64 | ||
with: | ||
name: ${{ github.sha }}-darwin-x64-plugin-sass | ||
path: ./rust-plugins/sass/npm/darwin-x64 | ||
- name: List Files | ||
run: ls -l ./rust-plugins/sass/npm/darwin-x64/index.farm | ||
|
||
- uses: actions/download-artifact@v3 | ||
id: download-win32-x64-msvc | ||
with: | ||
name: ${{ github.sha }}-win32-x64-msvc-plugin-sass | ||
path: ./rust-plugins/sass/npm/win32-x64-msvc | ||
- name: List Files | ||
run: ls -l ./rust-plugins/sass/npm/win32-x64-msvc/index.farm | ||
|
||
- uses: actions/download-artifact@v3 | ||
id: download-darwin-arm64 | ||
with: | ||
name: ${{ github.sha }}-darwin-arm64-plugin-sass | ||
path: ./rust-plugins/sass/npm/darwin-arm64 | ||
- name: List Files | ||
run: ls -l ./rust-plugins/sass/npm/darwin-arm64/index.farm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,9 @@ jobs: | |
- name: Install Rust | ||
uses: oxidecomputer/actions-rs_toolchain@oxide/master | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: arduino/setup-protoc@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run cargo check | ||
run: cargo check --color always --all --all-targets | ||
|
@@ -32,6 +35,14 @@ jobs: | |
- name: Install Rust | ||
uses: oxidecomputer/actions-rs_toolchain@oxide/master | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Install Dependencies | ||
run: npm install -g pnpm@7 && pnpm i --frozen-lockfile | ||
- uses: arduino/setup-protoc@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run cargo test | ||
run: cargo test | ||
|
@@ -44,6 +55,14 @@ jobs: | |
- name: Install Rust | ||
uses: oxidecomputer/actions-rs_toolchain@oxide/master | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Install Dependencies | ||
run: npm install -g pnpm@7 && pnpm i --frozen-lockfile | ||
- uses: arduino/setup-protoc@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
|
Oops, something went wrong.