Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 19, 2023
1 parent 7e7fe35 commit 96b79c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
- uses: actions/checkout@v3
- uses: teaxyz/setup@v0

- name: configure PATH
run: echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH

- uses: actions/cache@v3
with:
path: ${{ env.HOME }}/.cache/deno
Expand All @@ -23,15 +26,15 @@ jobs:
# this makes the output from the build step more legible
run: deno cache libexec/*.ts

- run: bin/build ${{matrix.pkgs}}
- run: pkg build ${{matrix.pkgs}}
id: build

- run: test -n '${{ steps.build.outputs.srcs }}'
- run: test -n '${{ steps.build.outputs.pkgs }}'
- run: test -n '${{ steps.build.outputs.srcs-relative-paths }}'
- run: test -n '${{ steps.build.outputs.relative-paths }}'

- run: bin/test ${{matrix.pkgs}}
- run: pkg test ${{matrix.pkgs}}

typecheck:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion libexec/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ args:
- run
- --allow-net
- --allow-read
- --allow-run=tar
- --allow-run=tar,unzip
- --allow-write={{tea.prefix}}
- --allow-env=TEA_PREFIX,TEA_PANTRY_PATH,GITHUB_TOKEN
---*/
Expand Down
5 changes: 3 additions & 2 deletions libexec/fixup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const { flags, unknown } = parseFlags(Deno.args, {
flags: [{
name: "deps",
type: "string",
required: true
required: true,
optionalValue: true
}],
})

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

0 comments on commit 96b79c3

Please sign in to comment.