Skip to content

Commit

Permalink
Merge branch 'facebook:main' into addVSCodeExample
Browse files Browse the repository at this point in the history
  • Loading branch information
Overhatted authored Feb 10, 2024
2 parents a7a997b + 340794c commit 6f3672e
Show file tree
Hide file tree
Showing 794 changed files with 19,975 additions and 10,263 deletions.
306 changes: 0 additions & 306 deletions .circleci/config.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/actions/build_bootstrap/action.yml
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
10 changes: 10 additions & 0 deletions .github/actions/build_debug/action.yml
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
14 changes: 14 additions & 0 deletions .github/actions/build_example_conan/action.yml
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
9 changes: 9 additions & 0 deletions .github/actions/build_example_no_prelude/action.yml
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
10 changes: 10 additions & 0 deletions .github/actions/build_release/action.yml
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
13 changes: 13 additions & 0 deletions .github/actions/init_opam/action.yml
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
12 changes: 12 additions & 0 deletions .github/actions/print_versions/action.yml
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
7 changes: 7 additions & 0 deletions .github/actions/run_test_py/action.yml
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
Loading

0 comments on commit 6f3672e

Please sign in to comment.