-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'facebook:main' into addVSCodeExample
- Loading branch information
Showing
794 changed files
with
19,975 additions
and
10,263 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: build_bootstrap | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Build `buck2` with `buck2` | ||
run: "$RUNNER_TEMP/artifacts/buck2 build :buck2 -v 2" | ||
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: build_debug | ||
description: Build buck2 binary (debug) | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Build buck2 binary (debug) | ||
run: |- | ||
mkdir $RUNNER_TEMP/artifacts | ||
cargo build --bin=buck2 -Z unstable-options --out-dir=$RUNNER_TEMP/artifacts | ||
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: build_example_conan | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Build examples/toolchains/conan_toolchain | ||
run: |- | ||
cd examples/toolchains/conan_toolchain | ||
$RUNNER_TEMP/artifacts/buck2 init | ||
cp -r ../../../prelude prelude | ||
# Generate Conan imports. TODO[AH] Make that unnecessary. | ||
PATH="$RUNNER_TEMP/artifacts:$PATH" $RUNNER_TEMP/artifacts/buck2 run //cpp/conan:update -v 2 | ||
$RUNNER_TEMP/artifacts/buck2 build //... -v 2 | ||
$RUNNER_TEMP/artifacts/buck2 test //... -v 2 | ||
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: build_example_no_prelude | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Build example/no_prelude directory | ||
run: |- | ||
cd examples/no_prelude | ||
$RUNNER_TEMP/artifacts/buck2 build //... -v 2 | ||
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: build_release | ||
description: Build buck2 binary (release) | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Build buck2 binary (release) | ||
run: |- | ||
mkdir $RUNNER_TEMP/artifacts | ||
cargo build --bin=buck2 --release -Z unstable-options --out-dir=$RUNNER_TEMP/artifacts | ||
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: init_opam | ||
description: Setup OPAM | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Initialize OPAM | ||
run: | | ||
opam init --compiler=5.1.1 --disable-sandboxing -y | ||
echo 'eval $(opam env)' >> ~/.bashrc | ||
shell: bash | ||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: print_versions | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Version Info | ||
run: |- | ||
rustup show | ||
rustc --version | ||
cargo --version | ||
rustup --version | ||
python3 --version | ||
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: run_test_py | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Run test.py | ||
run: python3 test.py --ci --git --buck2=$RUNNER_TEMP/artifacts/buck2 | ||
shell: bash |
Oops, something went wrong.