Skip to content

Commit 96b79c3

Browse files
committed
minor fixes
1 parent 7e7fe35 commit 96b79c3

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: teaxyz/setup@v0
1616

17+
- name: configure PATH
18+
run: echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
19+
1720
- uses: actions/cache@v3
1821
with:
1922
path: ${{ env.HOME }}/.cache/deno
@@ -23,15 +26,15 @@ jobs:
2326
# this makes the output from the build step more legible
2427
run: deno cache libexec/*.ts
2528

26-
- run: bin/build ${{matrix.pkgs}}
29+
- run: pkg build ${{matrix.pkgs}}
2730
id: build
2831

2932
- run: test -n '${{ steps.build.outputs.srcs }}'
3033
- run: test -n '${{ steps.build.outputs.pkgs }}'
3134
- run: test -n '${{ steps.build.outputs.srcs-relative-paths }}'
3235
- run: test -n '${{ steps.build.outputs.relative-paths }}'
3336

34-
- run: bin/test ${{matrix.pkgs}}
37+
- run: pkg test ${{matrix.pkgs}}
3538

3639
typecheck:
3740
runs-on: ubuntu-latest

libexec/extract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ args:
1010
- run
1111
- --allow-net
1212
- --allow-read
13-
- --allow-run=tar
13+
- --allow-run=tar,unzip
1414
- --allow-write={{tea.prefix}}
1515
- --allow-env=TEA_PREFIX,TEA_PANTRY_PATH,GITHUB_TOKEN
1616
---*/

libexec/fixup.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ const { flags, unknown } = parseFlags(Deno.args, {
2222
flags: [{
2323
name: "deps",
2424
type: "string",
25-
required: true
25+
required: true,
26+
optionalValue: true
2627
}],
2728
})
2829

@@ -43,7 +44,7 @@ case 'darwin':
4344
})
4445
break
4546
case 'linux': {
46-
const raw = flags.deps as string
47+
const raw = flags.deps == true ? '' : flags.deps as string
4748
const installs = await Promise.all(raw.split(/\s+/).map(path => cellar.resolve(new Path(path))))
4849
const deps = installs.map(({ pkg }) => str(pkg))
4950
await run({

0 commit comments

Comments
 (0)