Skip to content

Commit 8877898

Browse files
committed
Download javy directly instead of using broken action
1 parent 9b9ed92 commit 8877898

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@ jobs:
1616

1717
- uses: extractions/setup-just@v2
1818

19-
- uses: jcbhmr/setup-javy@v1
20-
with:
21-
javy-version: '8.0.0'
19+
- name: Install Javy
20+
run: |
21+
curl -L https://github.com/bytecodealliance/javy/releases/download/v8.0.0/javy-x86_64-linux-v8.0.0.gz -o javy.gz
22+
gunzip javy.gz
23+
chmod +x javy
24+
sudo mv javy /usr/local/bin/javy
2225
2326
- uses: sqlc-dev/setup-sqlc@v4
2427
with:

.github/workflows/release.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
permissions:
99
contents: write
@@ -13,43 +13,46 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
16+
1717
- uses: oven-sh/setup-bun@v2
1818
with:
1919
bun-version: latest
20-
20+
2121
- uses: extractions/setup-just@v2
22-
23-
- uses: jcbhmr/setup-javy@v1
24-
with:
25-
javy-version: '8.0.0'
26-
22+
23+
- name: Install Javy
24+
run: |
25+
curl -L https://github.com/bytecodealliance/javy/releases/download/v8.0.0/javy-x86_64-linux-v8.0.0.gz -o javy.gz
26+
gunzip javy.gz
27+
chmod +x javy
28+
sudo mv javy /usr/local/bin/javy
29+
2730
- name: Install dependencies
2831
run: bun install
29-
32+
3033
- name: Build WASM plugin
3134
run: just plugin-wasm && mv examples/plugin.wasm sqlc-gen-typescript.wasm
32-
35+
3336
- name: Calculate SHA256
3437
id: sha256
3538
run: |
3639
SHA256=$(sha256sum sqlc-gen-typescript.wasm | awk '{print $1}')
3740
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
3841
echo "SHA256: $SHA256"
39-
42+
4043
- name: Create Release
4144
uses: softprops/action-gh-release@v1
4245
with:
4346
files: sqlc-gen-typescript.wasm
4447
body: |
4548
## sqlc-gen-typescript WASM Plugin
46-
49+
4750
**SHA256:** `${{ steps.sha256.outputs.sha256 }}`
48-
51+
4952
### Usage
50-
53+
5154
Add this to your `sqlc.yaml`:
52-
55+
5356
```yaml
5457
plugins:
5558
- name: ts

0 commit comments

Comments
 (0)