Skip to content

Commit fae1d82

Browse files
committed
add pony
1 parent fae1bd7 commit fae1d82

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
- node
4040
- go
4141
- bun
42+
- pony
4243
- fortran
4344
- rust
4445
- swiftc

count.pony

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
actor Main
2+
new create(env: Env) =>
3+
var target: U32 = try env.args(1)?.u32()? else 0 end
4+
var i: U32 = 0
5+
while i < target do
6+
i = (i + 1) or 1
7+
end
8+
env.out.print(i.string())

docker/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,9 @@ COPY ./swift.sh ./swift.sh
6161
RUN ./swift.sh
6262
ENV PATH="/root/.swift/usr/bin:$PATH"
6363

64+
ENV PATH="/root/.local/share/ponyup/bin:$PATH"
65+
RUN (curl -fSL https://raw.githubusercontent.com/ponylang/ponyup/latest-release/ponyup-init.sh | sh) || true \
66+
&& ponyup default x86_64-linux-ubuntu22.04 \
67+
&& ponyup update ponyc release
68+
6469
WORKDIR /var/count

justfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,8 @@ build-swiftc: (_check "swiftc") && (_size "count")
339339
swiftc --version > VERSION
340340
swiftc ./count.swift -o count -O
341341
echo './count {{i}}' > CMD
342+
343+
build-pony: (_check "ponyc") && (_size "count")
344+
ponyc --version > VERSION
345+
ponyc
346+
echo './count {{i}}' > CMD

0 commit comments

Comments
 (0)