Skip to content

cargo vendor 🚚 on - Simplify dune build before moving into pyre source tree Summary: These changes simplify the build rules for libffi_ocaml.a and make sure the same rule works after moving to a different directory as well. Without these fixes, the build fails after the move. Reviewed By: grievejia Differential Revision: D59380840 fbshipit-source-id: 8c84435d5c3e13b3df69906ce18e47a4ba53e3bb #104

cargo vendor 🚚 on - Simplify dune build before moving into pyre source tree Summary: These changes simplify the build rules for libffi_ocaml.a and make sure the same rule works after moving to a different directory as well. Without these fixes, the build fails after the move. Reviewed By: grievejia Differential Revision: D59380840 fbshipit-source-id: 8c84435d5c3e13b3df69906ce18e47a4ba53e3bb

cargo vendor 🚚 on - Simplify dune build before moving into pyre source tree Summary: These changes simplify the build rules for libffi_ocaml.a and make sure the same rule works after moving to a different directory as well. Without these fixes, the build fails after the move. Reviewed By: grievejia Differential Revision: D59380840 fbshipit-source-id: 8c84435d5c3e13b3df69906ce18e47a4ba53e3bb #104

Workflow file for this run

on:
push:
branches:
- main
name: cargo vendor and commit
run-name: cargo vendor 🚚 on - ${{ github.event.head_commit.message }}
jobs:
cargo_vendor:
runs-on: ubuntu-latest
steps:
- name: Delete release branch
uses: dawidd6/action-delete-branch@v3
with:
soft_fail: true # set to true so that if the branch doesn't exist action doesnt fail
branches: release
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
- run: cargo vendor vendor_external
- name: Create .cargo dir
run: |
mkdir -p .cargo
- name: Create cargo config
shell: bash
run: |
cat << EOF > .cargo/config.toml
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor_external"
EOF
- name: commit to 'new' release branch
uses: EndBug/add-and-commit@v9.1.1
with:
new_branch: release
author_name: GitHub Action
author_email: action@github.com