forked from facebook/buck2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1228773
commit 36f4240
Showing
7 changed files
with
33 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ runs: | |
run: |- | ||
cd examples/no_prelude | ||
$RUNNER_TEMP/artifacts/buck2 build //... -v 2 | ||
shell: bash | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
name: init_opam | ||
description: | | ||
Setup OCaml environment for building and testing buck2. | ||
description: Setup OPAM | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Init opam | ||
run: |- | ||
- name: Initialize OPAM | ||
run: | | ||
opam init --compiler=5.1.1 --disable-sandboxing -y | ||
opam install menhir ppxlib -y | ||
echo 'eval $(opam env)' >> ~/.bashrc | ||
shell: bash | ||
- name: OCaml Configuration Info | ||
run: | | ||
eval $(opam env) >> $GITHUB_ENV | ||
ocamlopt.opt -config | ||
- name: Install OPAM packages | ||
run: opam install menhir ppxlib -y | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,15 @@ | ||
name: setup_macos_env | ||
description: | | ||
Setup macOS environment for building and testing. | ||
description: Setup macOS environment | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Install Rustup | ||
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
shell: bash | ||
- name: Increase open file descriptor limit | ||
run: |- | ||
# Avoid "too many open files" error. | ||
#echo 'sudo launchctl limit maxfiles 9000000 9999999' >> "$GITHUB_ENV" | ||
#echo 'ulimit -Sn 9000000' >> "$GITHUB_ENV" | ||
echo "TODO Increase open file descriptor limit" | ||
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=none | ||
shell: bash | ||
- name: Brew install | ||
run: |- | ||
# Avoid: "Error: The `brew link` step did not complete | ||
# successfully" (for llvm dependency 'six'). | ||
rm -f '/usr/local/lib/python3.9/site-packages/six.py' | ||
brew install cmake python3 coreutils opam llvm protobuf zstd ghc | ||
# TODO: Remove once non intel macos platform is supported on /~https://github.com/stepancheg/rust-protoc-bin-vendored/ | ||
echo 'export BUCK2_BUILD_PROTOC=/opt/homebrew/opt/protobuf/bin/protoc' >> "$GITHUB_ENV" | ||
echo 'export BUCK2_BUILD_PROTOC_INCLUDE=/opt/homebrew/opt/protobuf/include' >> "$GITHUB_ENV" | ||
shell: bash | ||
- run: sudo pip3 install conan==1.* | ||
shell: bash | ||
- name: Set CARGO_BUILD_JOBS=6 to limit the number of CPUs used | ||
run: echo 'export CARGO_BUILD_JOBS="6"' >> "$GITHUB_ENV" | ||
run: brew install cmake python3 coreutils opam llvm protobuf zstd ghc | ||
shell: bash | ||
- name: Add LLVM to PATH | ||
run: echo 'export PATH=/usr/local/opt/llvm/bin:"$PATH"' >> "$GITHUB_ENV" | ||
- name: Install conan | ||
run: sudo pip3 install conan==1.* | ||
shell: bash | ||
- uses: "./.github/actions/print_versions" | ||
- uses: "./.github/actions/print_versions" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters