Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

cargo vendor 🚚 on - Pyre Faster Type Checking By Default Mode Headers] [batch:35/189] [shard:5/N] Reviewed By: connernilsen Differential Revision: D58456230 fbshipit-source-id: 8a07a1350f14f12417c0d06b6a733d1048a060e0 #101

cargo vendor 🚚 on - Pyre Faster Type Checking By Default Mode Headers] [batch:35/189] [shard:5/N] Reviewed By: connernilsen Differential Revision: D58456230 fbshipit-source-id: 8a07a1350f14f12417c0d06b6a733d1048a060e0

cargo vendor 🚚 on - Pyre Faster Type Checking By Default Mode Headers] [batch:35/189] [shard:5/N] Reviewed By: connernilsen Differential Revision: D58456230 fbshipit-source-id: 8a07a1350f14f12417c0d06b6a733d1048a060e0 #101

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