id: "ante" aliases: - "an" name: "Ante" install: prepare: apt: - cargo - cmake - libssl-dev - pkg-config - python3-distutils manual: | export PATH="$HOME/.cargo/bin:$PATH" cargo install llvmenv llvmenv init # If compiler is not explicitly set to LLVM, then we get an # error: unrecognized command-line option ‘-Wnewline-eof’. CC=/usr/bin/clang CXX=/usr/bin/clang++ llvmenv build-entry -G Makefile -j$(nproc) 10.0.0 llvmenv global 10.0.0 manual: | git clone https://github.com/jfecher/ante.git pushd ante LLVM_SYS_100_PREFIX="$(llvmenv prefix)" cargo build --release install -d "${pkg}/opt/ante" install -d "${pkg}/usr/local/bin" 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" cp -R /opt/ante/stdlib "$HOME/.config/ante/" main: "main.an" template: | print "Hello, world!" compile: | ante main.an run: | ./main