| 1234567891011121314151617181920 |
- # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
- # Exceptions. See /LICENSE for license information.
- # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- FROM carbon-ubuntu2404-base as carbon-ubuntu2404-github-build
- # Clone git repository
- RUN git clone https://github.com/carbon-language/carbon-lang
- WORKDIR /carbon-lang
- # Setup pre-commit
- RUN pre-commit install
- # Build
- RUN bazel build //explorer
- FROM carbon-ubuntu2404-github-build
- CMD ["bazel", "run", "//explorer", "--", "./explorer/testdata/print/format_only.carbon"]
|