From 305828bb9211031a7a5aac44bdbc6bfabd23de43 Mon Sep 17 00:00:00 2001
From: Ruslan Sayfutdinov <sayfutdinov@meta.com>
Date: Sat, 16 Nov 2024 02:19:28 -0800
Subject: [PATCH] buck2/github: replace --out-dir with --artifact-dir

Summary: It was renamed long time ago: https://github.com/rust-lang/cargo/issues/6790

Reviewed By: iguridi

Differential Revision: D66011214
---
 .github/actions/build_debug/action.yml   | 2 +-
 .github/actions/build_release/action.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/actions/build_debug/action.yml b/.github/actions/build_debug/action.yml
index aa4c7dc0309e..2992e4764b27 100644
--- a/.github/actions/build_debug/action.yml
+++ b/.github/actions/build_debug/action.yml
@@ -6,5 +6,5 @@ runs:
   - name: Build buck2 binary (debug)
     run: |-
       mkdir $RUNNER_TEMP/artifacts
-      cargo build --bin=buck2 -Z unstable-options --out-dir=$RUNNER_TEMP/artifacts
+      cargo build --bin=buck2 -Z unstable-options --artifact-dir=$RUNNER_TEMP/artifacts
     shell: bash
diff --git a/.github/actions/build_release/action.yml b/.github/actions/build_release/action.yml
index d332608a454e..18b642eb3c6a 100644
--- a/.github/actions/build_release/action.yml
+++ b/.github/actions/build_release/action.yml
@@ -6,5 +6,5 @@ runs:
   - name: Build buck2 binary (release)
     run: |-
       mkdir $RUNNER_TEMP/artifacts
-      cargo build --bin=buck2 --release -Z unstable-options --out-dir=$RUNNER_TEMP/artifacts
+      cargo build --bin=buck2 --release -Z unstable-options --artifact-dir=$RUNNER_TEMP/artifacts
     shell: bash