Skip to content

Commit 5dcd441

Browse files
committed
v0.46
update pkgx deps
1 parent 97fae5a commit 5dcd441

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+645
-464
lines changed

.github/workflows/cd.vx.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: cd·vx
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
concurrency:
9+
group: cd/vx/${{ github.event.release.tag_name }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
retag:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: fischerscode/tagger@v0
21+
with:
22+
prefix: v

.github/workflows/cd.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,40 @@ jobs:
1818
- catb.org/wumpus
1919
- c-ares.org
2020
- vim.org
21-
- tea.xyz/gx/cc
21+
- curl.se
2222
# FIXME? requires a darwin platform to run, and needs
2323
# macOS 12 to test. That'll require a more complex matrix
2424
# using get-platform.
2525
# - github.com/realm/SwiftLint
2626
container:
2727
image: debian:buster-slim
2828
steps:
29-
- uses: actions/checkout@v3
30-
- uses: teaxyz/setup@v0
29+
- uses: actions/checkout@v4
30+
- uses: ./actions/setup-brewkit
3131

32-
- name: configure PATH
33-
run: echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH
34-
35-
- uses: actions/cache@v3
36-
with:
37-
path: ${{ env.HOME }}/.cache/deno
38-
key: deno-get-platform-${{ hashFiles('deno.jsonc')}}
39-
40-
- name: prefetch deno deps
41-
# this makes the output from the build step more legible
42-
run: deno cache **/*.ts
32+
# prefetch deno deps to make the output from the build step more legible
33+
- run: pkgx deno cache **/*.ts
4334

4435
- run: pkg build ${{matrix.pkgs}}
4536
id: build
4637

38+
- if: always()
39+
run: cat ${{ steps.build.outputs.build-dir }}/config.log || true
40+
4741
- run: test -n '${{ steps.build.outputs.pkgs }}'
4842
- run: test -n '${{ steps.build.outputs.relative-paths }}'
43+
4944
- run: |
5045
if pkg query ${{ steps.build.outputs.pkgs }} --src 2>&1 | grep -E '^warn: pkg has no srcs:'; then
5146
echo "srcs=false" >> $GITHUB_OUTPUT
5247
else
5348
echo "srcs=true" >> $GITHUB_OUTPUT
5449
fi
5550
id: srcs
51+
5652
- run: test -n '${{ steps.build.outputs.srcs }}'
5753
if: steps.srcs.outputs.srcs == 'true'
54+
5855
- run: test -n '${{ steps.build.outputs.srcs-relative-paths }}'
5956
if: steps.srcs.outputs.srcs == 'true'
6057

@@ -63,13 +60,13 @@ jobs:
6360
typecheck:
6461
runs-on: ubuntu-latest
6562
steps:
66-
- uses: actions/checkout@v3
67-
- uses: teaxyz/setup@v0
63+
- uses: actions/checkout@v4
64+
- uses: pkgxdev/dev@main
6865
- run: deno task typecheck
6966

7067
unit-tests:
7168
runs-on: ubuntu-latest
7269
steps:
73-
- uses: actions/checkout@v3
74-
- uses: teaxyz/setup@v0
70+
- uses: actions/checkout@v4
71+
- uses: pkgxdev/dev@main
7572
- run: deno test --allow-env

.github/workflows/shellcheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
12-
- uses: teaxyz/setup@v0
13-
- run: tea xc shellcheck
12+
- uses: pkgxdev/setup@v1
13+
- run: pkgx xc shellcheck

README.md

Lines changed: 20 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
![tea](https://tea.xyz/banner.png)
1+
![pkgx](https://pkgx.dev/banner.png)
22

33
# BrewKit
44

5-
BrewKit is build infrastructure for tea.
5+
BrewKit is build infrastructure for `pkgx`.
66

77
```sh
8-
tea pkg build zlib.net
9-
# ^^ same as tea +tea.xyz/brewkit pkg build zlib.net
8+
$ env +brewkit
9+
$ pkg build zlib.net
1010
```
1111

12-
If you are inside a pantry and tea magic is installed, you can omit the `tea`
13-
preamble and package names; BrewKit will figure out what packages you are
12+
If you are inside a pantry then BrewKit will figure out what packages you are
1413
editing and build them.
1514

1615
```sh
16+
$ cd pantry
17+
$ dev
1718
$ pkg build
18-
tea.xyz/brewkit: building zlib.net
19+
brewkit: building zlib.net
1920
```
2021

2122
You can build for Linux (via Docker) using `-L`, e.g.:
@@ -26,18 +27,18 @@ pkg -L build
2627

2728
## Outside a Pantry Checkout
2829

29-
Outside a pantry checkout we operate against your tea installation
30-
(which defaults to `~/.tea`). Builds occur in a temporary directory rather
30+
Outside a pantry checkout we operate against your `pkgx` installation
31+
(which defaults to `~/.pkgx`). Builds occur in a temporary directory rather
3132
than local to your pantry checkout.
3233

3334
```sh
34-
tea pkg build zlib.net
35+
pkgx +brewkit pkg build zlib.net
3536
```
3637

3738

3839
## Additions
3940

40-
This repo is for tooling built on top of the tea primitives with the purpose
41+
This repo is for tooling built on top of the `pkgx` primitives with the purpose
4142
of generalized building and testing of open source packages.
4243

4344
If you have an idea for an addition open a [discussion]!
@@ -75,41 +76,26 @@ brewkit will be used rather than that which is installed.
7576

7677
## Bump
7778

79+
Priority is one of `major|minor|patch|prerelease|VERSION`
80+
7881
Inputs: PRIORITY
7982

8083
```sh
81-
if ! git diff-index --quiet HEAD --; then
82-
echo "error: dirty working tree" >&2
83-
exit 1
84-
fi
85-
86-
if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then
87-
echo "error: requires main branch" >&2
88-
exit 1
89-
fi
90-
91-
# ensure we have the latest version tags
92-
git fetch origin -pft
93-
94-
V=$(git describe --tags --abbrev=0 --match "v[0-9]*.[0-9]*.[0-9]*")
95-
V=$(tea semverator bump $V $PRIORITY)
96-
97-
git push origin main
98-
tea gh release create "v$V"-rc --prerelease --generate-notes --title "v$V"
84+
./scripts/publish-release.sh $PRIORITY
9985
```
10086

10187

102-
[discussion]: https://github.com/orgs/teaxyz/discussions
103-
104-
10588
## Shellcheck
10689

10790
```sh
10891
for x in bin/*; do
10992
if file $x | grep 'shell script'; then
110-
tea shellcheck --shell=dash --severity=warning $x
93+
pkgx shellcheck --shell=dash --severity=warning $x
11194
fi
11295
done
11396

114-
tea shellcheck --shell=dash --severity=warning **/*.sh
97+
pkgx shellcheck --shell=dash --severity=warning **/*.sh
11598
```
99+
100+
101+
[discussion]: https://github.com/orgs/pkgxdev/discussions

actions/bottle/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: tea/brewkit/bottle
2-
description: internal tea.xyz specific at this time
1+
name: pkgx/brewkit/bottle
2+
description: internal pkgx.dev specific at this time
33

44
inputs:
55
gpg-key-id:

actions/bottle/bottle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#!/usr/bin/env -S tea +gnu.org/tar^1.34 +tukaani.org/xz^5 +zlib.net^1 +gnupg.org^2 +deno.land>=1.32<1.36.1 deno run -A
1+
#!/usr/bin/env -S pkgx +gnu.org/tar^1.34 +tukaani.org/xz^5 +zlib.net^1 +gnupg.org^2 +deno.land>=1.32<1.36.1 deno run -A
22

33
import { encode as base64Encode } from "deno/encoding/base64.ts"
4-
import { Installation, Path, hooks, utils } from "tea"
4+
import { Installation, Path, hooks, utils } from "pkgx"
55
import { backticks } from "../../lib/utils.ts"
66
import { encode } from "deno/encoding/hex.ts"
77
import { set_output } from "../utils/gha.ts"

actions/cache/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: tea/brewkit/actions/cache
1+
name: pkgx/brewkit/actions/cache
22
description: cache deno deps
33

44
inputs:

actions/fetch-pr-artifacts/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: tea/pantry/fetch-pr-artifacts
2-
description: internal tea.xyz specific at this time
1+
name: pkgx/pantry/fetch-pr-artifacts
2+
description: internal pkgx.dev specific at this time
33

44
inputs:
55
platform:

actions/fetch-pr-artifacts/fetch-pr-artifacts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#!/usr/bin/env -S tea deno run --allow-net --allow-env --allow-write=./artifacts.tgz
1+
#!/usr/bin/env -S pkgx deno run --allow-net --allow-env --allow-write=./artifacts.tgz
22

33
/// Test
44
/// ./scripts/fetch-pr-artifacts.ts e582b03fe6efedde80f9569403555f4513dbec91
55

66
import undent from "outdent"
7-
import { utils } from "tea"
7+
import { utils } from "pkgx"
88
const { panic } = utils
99
import { S3 } from "s3"
1010

0 commit comments

Comments
 (0)