Skip to content

Commit f00abc2

Browse files
committed
chore: tighten CI, Taskfile, README, CHANGELOG
CI: - Cache ~/.local/share/ponyup keyed on release; skip the curl-pipe install on cache hit. Saves ~15-25s per run after the first. - Add concurrency: cancel-in-progress on the ref so PR force-pushes don't stack runs. - Pin actions/checkout to v6.0.2 (matches sibling repos in the org). - Add an explicit `corral fetch` step before the build so a missing _corral/ surfaces clearly rather than as a cryptic ponyc error. Taskfile: - `task test` now runs `corral fetch` first; previously a fresh clone would fail at the ponyc step because deps weren't fetched. CHANGELOG: - Replace `Unreleased` with `0.1.0 - 2026-04-28` to match corral.json. README: - Add `ZigZag` to the "What's here" bullet list (it was named in CHANGELOG but missing from README). - Reframe the install snippet as a deps-array entry rather than a full corral.json document; users merge it into their existing config.
1 parent 514c2c6 commit f00abc2

4 files changed

Lines changed: 30 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,35 @@ on:
55
branches: [main]
66
pull_request:
77

8+
concurrency:
9+
group: ci-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
test:
1014
runs-on: ubuntu-latest
1115
steps:
12-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6.0.2
17+
18+
- name: Cache ponyup toolchain
19+
uses: actions/cache@v4
20+
with:
21+
path: ~/.local/share/ponyup
22+
key: ponyup-${{ runner.os }}-release-v1
23+
1324
- name: Install ponyc + corral via ponyup
1425
run: |
15-
sh -c "$(curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/ponylang/ponyup/latest-release/ponyup-init.sh)"
16-
~/.local/share/ponyup/bin/ponyup default x86_64-unknown-linux-gnu
17-
~/.local/share/ponyup/bin/ponyup update ponyc release
18-
~/.local/share/ponyup/bin/ponyup update corral release
26+
if [ ! -x ~/.local/share/ponyup/bin/ponyup ]; then
27+
sh -c "$(curl --proto '=https' --tlsv1.2 -fsSL https://raw.githubusercontent.com/ponylang/ponyup/latest-release/ponyup-init.sh)"
28+
~/.local/share/ponyup/bin/ponyup default x86_64-unknown-linux-gnu
29+
~/.local/share/ponyup/bin/ponyup update ponyc release
30+
~/.local/share/ponyup/bin/ponyup update corral release
31+
fi
1932
echo "$HOME/.local/share/ponyup/bin" >> "$GITHUB_PATH"
33+
34+
- name: Fetch corral deps
35+
run: corral fetch
36+
2037
- name: Build + test
2138
run: |
2239
mkdir -p build

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## Unreleased
3+
## 0.1.0 - 2026-04-28
44

55
### Features
66

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ validation. The runtime that generated Pony code (emitted by
66

77
## What's here
88

9-
- **`Varint`** — varint encode/decode + zigzag encode/decode (i32/i64).
9+
- **`Varint`** — varint encode/decode (`Array[U8] iso^``U64`).
10+
- **`ZigZag`** — zigzag encode/decode for signed scalars (`I32`/`I64`).
1011
- **`Tag`** + **`TagCodec`** — protobuf field tag (field number + wire type).
1112
- **`WireType`** — typed union (`WireVarint | WireFixed64 | WireLenDelim |
1213
WireFixed32`); proto2 group wire types are deliberately omitted.
@@ -28,14 +29,12 @@ validation. The runtime that generated Pony code (emitted by
2829

2930
## Install
3031

32+
Add to your `corral.json` `deps`:
33+
3134
```json
3235
{
33-
"deps": [
34-
{
35-
"locator": "github.com/TrogonStack/protobuf-pony",
36-
"version": "0.1.0"
37-
}
38-
]
36+
"locator": "github.com/TrogonStack/protobuf-pony",
37+
"version": "0.1.0"
3938
}
4039
```
4140

Taskfile.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tasks:
88
test:
99
desc: Build and run unit + property tests
1010
cmds:
11+
- corral fetch
1112
- mkdir -p build
1213
- corral run -- ponyc --path . -o build test/
1314
- ./build/test

0 commit comments

Comments
 (0)