New solution that works on the free tier

Let's just require some languages to be built and published locally.
Easy enough.
This commit is contained in:
Radon Rosborough 2021-01-14 20:18:26 -08:00
parent 52093d53cb
commit 7d780661db
4 changed files with 11 additions and 2 deletions

View File

@ -13,7 +13,6 @@ jobs:
build_and_deploy:
machine:
image: ubuntu-2004:202010-01
resource_class: large
steps:
- checkout
- run: tools/ci-bootstrap.bash

View File

@ -28,6 +28,9 @@ install:
cp target/release/ante "${pkg}/usr/local/bin/"
cp -R stdlib "${pkg}/opt/ante/"
popd
# Disallow this from running in CI because compiling LLVM takes 5+
# hours on the standard CircleCI runner.
disallowCI: true
setup: |
mkdir -p "$HOME/.config/ante"

View File

@ -5,4 +5,4 @@ set -euo pipefail
echo "${DOCKER_PASSWORD}" | sudo -E docker login --username "${DOCKER_USERNAME}" --password-stdin
make system
make publish Z=1
make publish Z=1 CI=1

View File

@ -263,6 +263,13 @@ EOF`);
latest_release() {
curl -sSL "https://api.github.com/repos/\$1/releases/latest" | jq -r .tag_name
}`);
}
if (install && install.disallowCI) {
parts.unshift(`\
if [[ -n "\${CI:-}" ]]; then
echo "language ${id} cannot be built in CI" >&2
exit 1
fi`);
}
parts.unshift(`\
#!/usr/bin/env bash