Skip to content

Commit 8c4c4dc

Browse files
authored
chore: updates for beta1 (#124)
* chore: updates for `beta1` fix: don't run `selftest` after install fix: use newer default tag for testing chore: update all deps chore: rebuild dist Signed-off-by: Sam Gammon <[email protected]> * chore: update gha deps Signed-off-by: Sam Gammon <[email protected]> * chore: readme updates Signed-off-by: Sam Gammon <[email protected]> * feat: implement auto-support for txz archives Signed-off-by: Sam Gammon <[email protected]> * chore: rebuild dist Signed-off-by: Sam Gammon <[email protected]> * fix: xz is moody about file extensions Signed-off-by: Sam Gammon <[email protected]> * chore: rebuild dist Signed-off-by: Sam Gammon <[email protected]> * feat: use new gha-dedicated download infra Signed-off-by: Sam Gammon <[email protected]> * chore: rebuild dist Signed-off-by: Sam Gammon <[email protected]> * fix: drop cleanup logic Signed-off-by: Sam Gammon <[email protected]> * chore: rebuild dist Signed-off-by: Sam Gammon <[email protected]> * fix: lexical redef in switch, check dist should ignore caches Signed-off-by: Sam Gammon <[email protected]> * chore: rebuild dist Signed-off-by: Sam Gammon <[email protected]> --------- Signed-off-by: Sam Gammon <[email protected]>
1 parent 79770ab commit 8c4c4dc

19 files changed

+3668
-54673
lines changed

.github/badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

.github/workflows/check-dist.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ jobs:
1818

1919
steps:
2020
- name: Harden Runner
21-
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
21+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
2222
with:
2323
egress-policy: audit
2424

2525
- name: "Setup: Checkout"
2626
id: checkout
27-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828

2929
- name: "Setup: PNPM"
30-
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
30+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
3131
with:
3232
version: 9.1.4
3333

3434
- name: "Setup: Node"
35-
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
35+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
3636
with:
3737
node-version: 20
3838
cache: pnpm
@@ -48,14 +48,15 @@ jobs:
4848
- name: "Check: Compare Expected and Actual Directories"
4949
id: diff
5050
run: |
51+
git checkout dist/index.js.cache dist/index.js.cache.js dist/index.js.map
5152
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
5253
echo "Detected uncommitted changes after build. See status below:"
5354
git diff --ignore-space-at-eol --text dist/
5455
exit 1
5556
fi
5657
5758
- name: "Build: Upload Artifact"
58-
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
59+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
5960
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
6061
with:
6162
name: dist

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ jobs:
1515

1616
steps:
1717
- name: Harden Runner
18-
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
18+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
1919
with:
2020
egress-policy: audit
2121

2222
- name: "Setup: Checkout"
2323
id: checkout
24-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525

2626
- name: "Setup: PNPM"
27-
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
27+
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
2828
with:
2929
version: 9.1.4
3030

3131
- name: "Setup: Node"
3232
id: setup-node
33-
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
33+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
3434
with:
3535
node-version: 20
3636
cache: pnpm
@@ -79,13 +79,13 @@ jobs:
7979

8080
steps:
8181
- name: Harden Runner
82-
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
82+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
8383
with:
8484
egress-policy: audit
8585

8686
- name: "Setup: Checkout"
8787
id: checkout
88-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
88+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8989

9090
- name: "Test: Local Action"
9191
id: test-action

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ jobs:
3333

3434
steps:
3535
- name: Harden Runner
36-
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
36+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
3737
with:
3838
egress-policy: audit
3939

4040
- name: Checkout
4141
id: checkout
42-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
42+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4343

4444
- name: Initialize CodeQL
4545
id: initialize

.github/workflows/dependency-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
20+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
2121
with:
2222
egress-policy: audit
2323

2424
- name: 'Checkout Repository'
25-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
- name: 'Dependency Review'
2727
uses: actions/dependency-review-action@72eb03d02c7872a771aacd928f3123ac62ad6d3a # v4.3.3

.github/workflows/scorecards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ jobs:
3131

3232
steps:
3333
- name: Harden Runner
34-
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
34+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
3535
with:
3636
egress-policy: audit
3737

3838
- name: "Checkout code"
39-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
39+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4040
with:
4141
persist-credentials: false
4242

@@ -63,7 +63,7 @@ jobs:
6363
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6464
# format to the repository Actions tab.
6565
- name: "Upload artifact"
66-
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
66+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
6767
with:
6868
name: SARIF file
6969
path: results.sarif

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,28 @@
66
[![Coverage](./.github/badges/coverage.svg)](https://codecov.io/gh/elide-dev/setup-elide)
77
[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v1.4-ff69b4.svg)](.github/CODE_OF_CONDUCT.md)
88

9-
109
This repository provides a [GitHub Action][0] to setup the [Elide][1] runtime within your workflows.
1110

1211
## Usage
1312

1413
**Install the latest Elide version and add it to the `PATH`**
1514
```yaml
1615
- name: "Setup: Elide"
17-
uses: elide-dev/setup-elide@v1.0.1
16+
uses: elide-dev/setup-elide@v2
1817
```
1918
2019
**Install a specific Elide version and add it to the `PATH`**
2120
```yaml
2221
- name: "Setup: Elide"
23-
uses: elide-dev/setup-elide@v1.0.1
22+
uses: elide-dev/setup-elide@v2
2423
with:
25-
version: 1.0.0-alpha9 # any tag from the `elide-dev/releases` repo
24+
version: 1.0.0-beta1 # any tag from the `elide-dev/releases` repo; omit for latest
2625
```
2726

2827
**Install Elide but don't add it to the `PATH`**
2928
```yaml
3029
- name: "Setup: Elide"
31-
uses: elide-dev/setup-elide@v1.0.1
30+
uses: elide-dev/setup-elide@v2
3231
with:
3332
export_path: false
3433
```
@@ -44,7 +43,6 @@ The full suite of available options are below.
4443
| `arch` | `string` | (Current) | Arch to target; defaults to current platform |
4544
| `force` | `boolean` | `false` | Force installation over existing binary |
4645
| `prewarm` | `boolean` | `true` | Warm up the runtime after installing |
47-
| `selftest` | `boolean` | `true` | Perform a self-test after installing |
4846
| `token` | `string` | `${{ env.GITHUB_TOKEN }}` | GitHub token to use for fetching assets |
4947
| `export_path` | `boolean` | `true` | Whether to install Elide onto the `PATH` |
5048

@@ -67,10 +65,12 @@ The full suite of available options are below.
6765
arch: amd64
6866
force: false
6967
prewarm: true
70-
seltest: true
7168
export_path: true
7269
```
7370

71+
> [!IMPORTANT]
72+
> Elide supports Linux on amd64 and macOS on amd64/aarch64 at this time. Windows and Linux/aarch64 support are forthcoming.
73+
7474
## What is Elide?
7575

7676
Elide is a new runtime and framework designed for the polyglot era. Mix and match languages including JavaScript, Python, Ruby, and JVM, with the ability to share objects between them. It's fast: Elide can execute Python at up to 3x the speed of CPython, Ruby at up to 22x vs. CRuby, and JavaScript at up to 75x the speed of Node. Elide already beats Node, Deno, and Bun under benchmark.

0 commit comments

Comments
 (0)