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:
parent
52093d53cb
commit
7d780661db
|
@ -13,7 +13,6 @@ jobs:
|
||||||
build_and_deploy:
|
build_and_deploy:
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:202010-01
|
image: ubuntu-2004:202010-01
|
||||||
resource_class: large
|
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: tools/ci-bootstrap.bash
|
- run: tools/ci-bootstrap.bash
|
||||||
|
|
|
@ -28,6 +28,9 @@ install:
|
||||||
cp target/release/ante "${pkg}/usr/local/bin/"
|
cp target/release/ante "${pkg}/usr/local/bin/"
|
||||||
cp -R stdlib "${pkg}/opt/ante/"
|
cp -R stdlib "${pkg}/opt/ante/"
|
||||||
popd
|
popd
|
||||||
|
# Disallow this from running in CI because compiling LLVM takes 5+
|
||||||
|
# hours on the standard CircleCI runner.
|
||||||
|
disallowCI: true
|
||||||
|
|
||||||
setup: |
|
setup: |
|
||||||
mkdir -p "$HOME/.config/ante"
|
mkdir -p "$HOME/.config/ante"
|
||||||
|
|
|
@ -5,4 +5,4 @@ set -euo pipefail
|
||||||
echo "${DOCKER_PASSWORD}" | sudo -E docker login --username "${DOCKER_USERNAME}" --password-stdin
|
echo "${DOCKER_PASSWORD}" | sudo -E docker login --username "${DOCKER_USERNAME}" --password-stdin
|
||||||
|
|
||||||
make system
|
make system
|
||||||
make publish Z=1
|
make publish Z=1 CI=1
|
||||||
|
|
|
@ -263,6 +263,13 @@ EOF`);
|
||||||
latest_release() {
|
latest_release() {
|
||||||
curl -sSL "https://api.github.com/repos/\$1/releases/latest" | jq -r .tag_name
|
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(`\
|
parts.unshift(`\
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
Loading…
Reference in New Issue