Skip to content

Commit

Permalink
GitHub Actions files cleanup (facebookresearch#3454)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookresearch#3454

Removing commented out lines and adding proper descriptions and comments where appropriate.

Reviewed By: junjieqi

Differential Revision: D57501602

fbshipit-source-id: 0202ff73b7a83158808affba9b98b96dff569457
  • Loading branch information
ramilbakhshyiev authored and abhinavdangeti committed Jul 12, 2024
1 parent 4b38041 commit 6e7cf7f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/actions/build_cmake/action.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Build cmake
inputs:
opt_level:
description: 'The optimization level'
description: 'Compile options / optimization level.'
required: false
default: generic
gpu:
description: 'The GPU to use'
description: 'Enable GPU support.'
required: false
default: OFF
raft:
description: 'The raft to use'
description: 'Enable RAFT support.'
required: false
default: OFF
runs:
Expand All @@ -20,12 +20,12 @@ runs:
with:
python-version: '3.11'
miniconda-version: latest
- name: Set up environment
- name: Initialize Conda environment
shell: bash
run: |
conda config --set solver libmamba
conda update -y -q conda
- name: Configure conda environment
- name: Configure Conda environment
shell: bash
run: |
conda install -y -q -c conda-forge gxx_linux-64=11.2 sysroot_linux-64=2.28
Expand Down
16 changes: 7 additions & 9 deletions .github/actions/build_conda/action.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Build conda
description: Build conda
name: Conda build
description: Builds FAISS inside a Conda environment and uploads to repository when label is provided.
inputs:
label:
description: "Label"
description: "The label to be used for uploads to Conda."
default: ""
required: false
cuda:
description: "cuda"
description: "CUDA toolkit version to use."
default: ""
required: false
raft:
description: "raft"
description: "Enable RAFT support."
default: ""
required: false
compiler_version:
description: "compiler_version"
default: ""
default: "Compiler version for C/C++/CUDA."
required: false
runs:
using: composite
Expand All @@ -24,7 +24,7 @@ runs:
shell: bash
id: choose_shell
run: |
# if runner.os != 'Windows' use bash, else use pwsh
# Use pwsh on Windows; bash everywhere else
if [ "${{ runner.os }}" != "Windows" ]; then
echo "shell=bash" >> "$GITHUB_OUTPUT"
else
Expand All @@ -38,8 +38,6 @@ runs:
- name: Install conda build tools
shell: ${{ steps.choose_shell.outputs.shell }}
run: |
# conda config --set solver libmamba
# conda config --set verbosity 3
conda update -y -q conda
conda install -y -q conda-build
- name: Enable anaconda uploads
Expand Down

0 comments on commit 6e7cf7f

Please sign in to comment.