Skip to content

Commit

Permalink
new option for bundler; tag 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Aug 12, 2024
1 parent 2392b68 commit d79c891
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ basic usages:

- `cr` command
- `caps` command
- `bundle_calcit` command, when `bundler` is set to `true`

### Usage

```yml
- uses: calcit-lang/[email protected].3
- uses: calcit-lang/[email protected].4
with:
version: "0.9.1"
bundler: false
```
Calcit latest: ![Calcit Version](https://img.shields.io/github/v/release/calcit-lang/calcit)
Expand Down
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ name: setup-cr
description: Setup Calcit runner
inputs:
version:
description: Version of Calcit install
description: "Version of Calcit to install"
required: true
default: 0.8.38
default: 0.9.2
bundler:
description: "download calcit bunder_command"
required: false
default: false

runs:
using: node20
Expand Down
4 changes: 4 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const core = require("@actions/core");
const tc = require("@actions/tool-cache");

const version = core.getInput("version");
const bundler = core.getInput("bundler");

const binFolder = `/home/runner/bin/`;

Expand Down Expand Up @@ -31,4 +32,7 @@ if (require.main === module) {
console.log(`Setting up Calcit ${version}`);
setup("cr");
setup("caps");
if (bundler) {
setup("bundle_calcit");
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-cr",
"version": "0.0.3",
"version": "0.0.4",
"description": "Setup Calcit runtime",
"main": "./index.js",
"repository": "[email protected]:calcit-lang/setup-cr.git",
Expand Down

0 comments on commit d79c891

Please sign in to comment.