-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull more repeated GH Action tasks into sub-actions (#1964)
This converts the build-protobuf action into a general action that initializes Dart _and_ builds the protobuf. It also factors out the repeated work to set up the sass-spec repo.
- Loading branch information
Showing
4 changed files
with
134 additions
and
142 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,36 @@ | ||
name: Initialize | ||
description: Check out Dart Sass and build the embedded protocol buffer. | ||
inputs: | ||
github-token: {required: true} | ||
node-version: {required: false, default: 18} | ||
dart-sdk: {required: false, default: stable} | ||
architecture: {required: false} | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: "${{ inputs.sdk }}" | ||
architecture: "${{ inputs.architecture }}" | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "${{ inputs.node-version }}" | ||
|
||
- run: dart pub get | ||
shell: bash | ||
|
||
- run: npm install | ||
shell: bash | ||
|
||
- uses: bufbuild/buf-setup-action@v1.13.1 | ||
with: {github_token: "${{ inputs.github-token }}"} | ||
|
||
- name: Check out embedded Sass protocol | ||
uses: sass/clone-linked-repo@v1 | ||
with: {repo: sass/embedded-protocol, path: build/embedded-protocol} | ||
|
||
- name: Generate Dart from protobuf | ||
run: dart run grinder protobuf | ||
env: {UPDATE_SASS_PROTOCOL: false} | ||
shell: bash |
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,12 @@ | ||
name: sass-spec | ||
description: Check out sass-spec and install its dependencies. | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Check out sass-spec | ||
uses: sass/clone-linked-repo@v1 | ||
with: {repo: sass/sass-spec} | ||
|
||
- run: npm install | ||
working-directory: sass-spec | ||
shell: bash |
Oops, something went wrong.