From 3622a9365abac07196e9ca381b562bd197839ae2 Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Wed, 11 Jun 2025 11:31:20 -0700 Subject: [PATCH 1/4] Create copilot-setup-steps.yml --- .github/workflows/copilot-setup-steps.yml | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/copilot-setup-steps.yml diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 0000000000..31fd254c88 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,33 @@ +name: "Copilot Setup Steps" + +# Allow testing of the setup steps from your repository's "Actions" tab. +on: workflow_dispatch + +jobs: + # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. + # See https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent + copilot-setup-steps: + runs-on: 8-core-ubuntu-latest + + permissions: + contents: read + + # You can define any steps you want, and they will run before the agent starts. + # If you do not check out your code, Copilot will do this for you. + steps: + - uses: actions/checkout@v4.2.2 + + - name: Install Dependencies + run: | + sudo ./eng/common/native/install-dependencies.sh && \ + sudo apt-get install -qq -y \ + libomp-dev + + - name: Build + run: ./build.sh + + - name: Put dotnet on the path + run: echo "PATH=$PWD/.dotnet:$PATH" >> $GITHUB_ENV + + - name: Run dotnet info + run: dotnet --info From 3c2ff76b00be85d68d374c7481ebb6a6c28f265d Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Wed, 11 Jun 2025 12:25:52 -0700 Subject: [PATCH 2/4] Use ubuntu-latest for copilot --- .github/workflows/copilot-setup-steps.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 31fd254c88..e7a7b500b3 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -7,7 +7,7 @@ jobs: # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. # See https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent copilot-setup-steps: - runs-on: 8-core-ubuntu-latest + runs-on: ubuntu-latest permissions: contents: read From 228f53b39cb114ed75f9a905a5722ef6286755af Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Wed, 11 Jun 2025 12:37:29 -0700 Subject: [PATCH 3/4] chmod+x a few scripts --- eng/common/native/init-os-and-arch.sh | 0 eng/common/native/install-dependencies.sh | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 eng/common/native/init-os-and-arch.sh mode change 100644 => 100755 eng/common/native/install-dependencies.sh diff --git a/eng/common/native/init-os-and-arch.sh b/eng/common/native/init-os-and-arch.sh old mode 100644 new mode 100755 diff --git a/eng/common/native/install-dependencies.sh b/eng/common/native/install-dependencies.sh old mode 100644 new mode 100755 From e931f547c82954555deb6fbd63882c75365a85b9 Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Wed, 11 Jun 2025 12:39:40 -0700 Subject: [PATCH 4/4] Checkout recursive --- .github/workflows/copilot-setup-steps.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index e7a7b500b3..bf5b939eaf 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -16,6 +16,8 @@ jobs: # If you do not check out your code, Copilot will do this for you. steps: - uses: actions/checkout@v4.2.2 + with: + submodules: recursive - name: Install Dependencies run: |