From c10cc2366a51b5546bfe79ab6cd76250e3b3f9fd Mon Sep 17 00:00:00 2001 From: Ramil Bakhshyiev Date: Sun, 19 May 2024 21:36:19 -0700 Subject: [PATCH] Move checkout step to CMake and Conda custom actions and relax version requirements (#3461) Summary: Migration to GitHub Actions Differential Revision: D57545814 --- .github/actions/build_cmake/action.yml | 4 +-- .github/actions/build_conda/action.yml | 2 +- .github/workflows/build.yml | 34 +++++++++++++------------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/actions/build_cmake/action.yml b/.github/actions/build_cmake/action.yml index a46462c8d9..cd023aaca7 100644 --- a/.github/actions/build_cmake/action.yml +++ b/.github/actions/build_cmake/action.yml @@ -16,7 +16,7 @@ runs: using: composite steps: - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v3.0.3 + uses: conda-incubator/setup-miniconda@v3 with: python-version: '3.11' miniconda-version: latest @@ -97,7 +97,7 @@ runs: FAISS_DISABLE_CPU_FEATURES=AVX2 LD_DEBUG=libs $CONDA/bin/python -c "import faiss" 2>&1 | grep faiss.so LD_DEBUG=libs $CONDA/bin/python -c "import faiss" 2>&1 | grep faiss_avx2.so - name: Upload test results - uses: actions/upload-artifact@v4.3.1 + uses: actions/upload-artifact@v4 with: name: test-results-${{ inputs.opt_level }}-${{ inputs.gpu }}-${{ inputs.raft }} path: test-results diff --git a/.github/actions/build_conda/action.yml b/.github/actions/build_conda/action.yml index ec407e6569..4658f13a8f 100644 --- a/.github/actions/build_conda/action.yml +++ b/.github/actions/build_conda/action.yml @@ -31,7 +31,7 @@ runs: echo "shell=pwsh" >> "$GITHUB_OUTPUT" fi - name: Setup miniconda - uses: conda-incubator/setup-miniconda@v3.0.3 + uses: conda-incubator/setup-miniconda@v3 with: python-version: '3.11' miniconda-version: latest diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ba83c7735..3f31ae3b96 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 - name: Install clang-format run: | sudo apt-get update -y @@ -40,13 +40,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 - uses: ./.github/actions/build_cmake linux-x86_64-AVX2-cmake: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 - uses: ./.github/actions/build_cmake with: opt_level: avx2 @@ -55,7 +55,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 - uses: ./.github/actions/build_cmake with: opt_level: avx512 @@ -64,7 +64,7 @@ jobs: runs-on: 4-core-ubuntu-gpu-t4 steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 - uses: ./.github/actions/build_cmake with: gpu: ON @@ -72,7 +72,7 @@ jobs: runs-on: 4-core-ubuntu-gpu-t4 steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 - uses: ./.github/actions/build_cmake with: gpu: ON @@ -81,7 +81,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -90,7 +90,7 @@ jobs: runs-on: windows-2019 steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -99,7 +99,7 @@ jobs: runs-on: 2-core-ubuntu-arm steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -109,7 +109,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -123,7 +123,7 @@ jobs: CUDA_ARCHS: "60-real;61-real;62-real;70-real;72-real;75-real;80;86-real" steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -139,7 +139,7 @@ jobs: CUDA_ARCHS: "70-real;72-real;75-real;80;86-real" steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -156,7 +156,7 @@ jobs: CUDA_ARCHS: "70-real;72-real;75-real;80;86-real" steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -172,7 +172,7 @@ jobs: CUDA_ARCHS: "70-real;72-real;75-real;80;86-real" steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -187,7 +187,7 @@ jobs: runs-on: windows-2019 steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -199,7 +199,7 @@ jobs: runs-on: macos-14 steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true @@ -211,7 +211,7 @@ jobs: runs-on: 2-core-ubuntu-arm steps: - name: Checkout - uses: actions/checkout@v4.1.1 + uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true