Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pony-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Lint Pony source
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/shared-docker-ci-standard-builder:release
image: ghcr.io/ponylang/shared-docker-ci-standard-builder:nightly
steps:
- uses: actions/checkout@v6.0.2
- name: Lint
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ponyup-tier2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ jobs:
with:
ref: ${{ inputs.ref || github.sha }}
- name: Pull Docker image
run: docker pull ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.3.3:release
run: docker pull ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.3.3:nightly
- name: Test with most recent ponyc release
run: |
docker run --rm \
-v ${{ github.workspace }}:/root/project \
-w /root/project \
ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.3.3:release \
ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.3.3:nightly \
make test
- name: Send alert on failure
if: ${{ failure() }}
Expand Down Expand Up @@ -226,9 +226,9 @@ jobs:
ref: ${{ inputs.ref || github.sha }}
- name: install pony tools
run: |
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest/ponyc-arm64-pc-windows-msvc.zip -OutFile C:\ponyc.zip;
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/nightlies/raw/versions/latest/ponyc-arm64-pc-windows-msvc.zip -OutFile C:\ponyc.zip;
Expand-Archive -Force -Path C:\ponyc.zip -DestinationPath C:\ponyc;
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest/corral-arm64-pc-windows-msvc.zip -OutFile C:\corral.zip;
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/nightlies/raw/versions/latest/corral-arm64-pc-windows-msvc.zip -OutFile C:\corral.zip;
Expand-Archive -Force -Path C:\corral.zip -DestinationPath C:\ponyc;
- name: Test with most recent ponyc release
run: |
Expand Down Expand Up @@ -281,7 +281,7 @@ jobs:
with:
ref: ${{ inputs.ref || github.sha }}
- name: install pony tools
run: bash .ci-scripts/macos-x86-install-pony-tools.bash release
run: bash .ci-scripts/macos-x86-install-pony-tools.bash nightly
- name: Test with the most recent ponyc release
run: |
export PATH="/tmp/corral/bin:/tmp/ponyc/bin/:$PATH"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
name: x86-64 Linux tests
runs-on: ubuntu-latest
container:
image: ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.3.3:release
image: ghcr.io/ponylang/shared-docker-ci-standard-builder-with-libressl-4.3.3:nightly
steps:
- uses: actions/checkout@v6.0.2
- name: Test with the most recent ponyc release
Expand All @@ -87,7 +87,7 @@ jobs:
steps:
- uses: actions/checkout@v6.0.2
- name: install pony tools
run: bash .ci-scripts/macos-arm64-install-pony-tools.bash release
run: bash .ci-scripts/macos-arm64-install-pony-tools.bash nightly
- name: Test with the most recent ponyc release
run: |
export PATH="/tmp/corral/bin:/tmp/ponyc/bin/:$PATH"
Expand All @@ -100,9 +100,9 @@ jobs:
- uses: actions/checkout@v6.0.2
- name: install pony tools
run: |
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest/ponyc-x86-64-pc-windows-msvc.zip -OutFile C:\ponyc.zip;
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/nightlies/raw/versions/latest/ponyc-x86-64-pc-windows-msvc.zip -OutFile C:\ponyc.zip;
Expand-Archive -Path C:\ponyc.zip -DestinationPath C:\ponyc;
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest/corral-x86-64-pc-windows-msvc.zip -OutFile C:\corral.zip;
Invoke-WebRequest https://dl.cloudsmith.io/public/ponylang/nightlies/raw/versions/latest/corral-x86-64-pc-windows-msvc.zip -OutFile C:\corral.zip;
Expand-Archive -Path C:\corral.zip -DestinationPath C:\ponyc;
- name: Test with most recent ponyc release
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ From there the team can either point you at an existing platform identifier or a

## Development

Building from source requires ponyc 0.78.0 or later.
Building from source requires ponyc 0.79.0 or later.

### Vendored LibreSSL

Expand Down
46 changes: 23 additions & 23 deletions cmd/cli.pony
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@ primitive CLI
"ponyup",
"The Pony toolchain multiplexer",
[ OptionSpec.bool(
"boring", "Do not use colorful output", 'b', false)
"boring", "Do not use colorful output", 'b', false)?
OptionSpec.string(
"prefix", "Specify toolchain install prefix", 'p', default_prefix)
"prefix", "Specify toolchain install prefix", 'p', default_prefix)?
OptionSpec.bool(
"verbose", "Show extra output", 'v', false)
"verbose", "Show extra output", 'v', false)?
OptionSpec.i64(
"connect-timeout",
"Connection timeout in seconds (1-300)",
None,
I64(30))
I64(30))?
OptionSpec.i64(
"api-timeout",
"API request timeout in seconds (1-300)",
None,
I64(15))
I64(15))?
OptionSpec.i64(
"download-timeout",
"Download timeout in seconds (60-7200)",
None,
I64(300))
I64(300))?
],
[ CommandSpec.leaf(
"version",
Expand All @@ -57,30 +57,30 @@ primitive CLI
"show",
"Show installed package versions",
[ OptionSpec.bool(
"local", "only show installed package versions", None, false)
"local", "only show installed package versions", None, false)?
],
[ ArgSpec.string("package" where default' = "")
[ ArgSpec.string("package" where default' = "")?
])? // TODO: show [<options>] in help message
CommandSpec.leaf(
"find",
"Find available package versions",
[ OptionSpec.i64(
"count",
"Number of results to display per channel (max 500)"
where short' = 'n', default' = I64(10))
where short' = 'n', default' = I64(10))?
OptionSpec.bool(
"all", "Show results for all platforms", 'a', false)
"all", "Show results for all platforms", 'a', false)?
],
[ ArgSpec.string("package")
ArgSpec.string("channel" where default' = "")
[ ArgSpec.string("package")?
ArgSpec.string("channel" where default' = "")?
])?
CommandSpec.leaf(
"remove",
"Remove an installed package version",
[],
[ ArgSpec.string("package")
ArgSpec.string("channel")
ArgSpec.string("version" where default' = "latest")
[ ArgSpec.string("package")?
ArgSpec.string("channel")?
ArgSpec.string("version" where default' = "latest")?
])?
CommandSpec.leaf(
"update",
Expand All @@ -89,25 +89,25 @@ primitive CLI
"retries",
"Number of times to retry on failure (0-10)",
None,
I64(0))
I64(0))?
],
[ ArgSpec.string("package")
ArgSpec.string("channel")
ArgSpec.string("version" where default' = "latest")
[ ArgSpec.string("package")?
ArgSpec.string("channel")?
ArgSpec.string("version" where default' = "latest")?
])?
CommandSpec.leaf(
"select",
"Select the default version for a package",
[],
[ ArgSpec.string("package")
ArgSpec.string("channel")
ArgSpec.string("version" where default' = "latest")
[ ArgSpec.string("package")?
ArgSpec.string("channel")?
ArgSpec.string("version" where default' = "latest")?
])?
CommandSpec.leaf(
"default",
"Set the default platform (such as x86_64-linux-ubuntu26.04)",
[],
[ ArgSpec.string("platform")
[ ArgSpec.string("platform")?
])?
])?
.> add_help("help", "Print this message and exit")?
Loading