Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert facebookresearch/hydra to GitHub Actions #2973

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
326 changes: 0 additions & 326 deletions .circleci/config.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/actions/linux/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: linux
inputs:
py_version:
required: false
runs:
using: composite
steps:
- name: Preparing environment - Conda
run: |-
curl -o Miniconda3-py38_4.8.3-Linux-x86_64.sh https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.3-Linux-x86_64.sh
bash ./Miniconda3-py38_4.8.3-Linux-x86_64.sh -b
shell: bash
- name: Preparing environment - Other dependency
run: |-
sudo apt-get update
sudo apt-get install -y expect fish zsh openjdk-11-jre rsync
shell: bash
- name: Preparing environment - Hydra
run: |-
~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda create -n hydra python=${{ inputs.py_version }} -yqc conda-forge
shell: bash
49 changes: 49 additions & 0 deletions .github/actions/macos/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: macos
inputs:
py_version:
required: false
runs:
using: composite
steps:
- name: restore_cache
uses: actions/[email protected]
with:
key: "-${{ inputs.cache_key_version }}-macos-sys-{{ .Branch }}-${{ inputs.py_version }}"
path: |-
~/miniconda3
~/Library/Caches/Homebrew
- uses: maxim-lobanov/[email protected]
with:
xcode-version: latest-stable
- name: Preparing environment - Conda
run: |-
if [[ -f ~/miniconda3/LICENSE.txt ]] ; then
echo "miniconda installed already."
else
curl -o Miniconda3-py39_24.5.0-0-MacOSX-arm64.sh https://repo.anaconda.com/miniconda/Miniconda3-py39_24.5.0-0-MacOSX-arm64.sh
bash ./Miniconda3-py39_24.5.0-0-MacOSX-arm64.sh -b
fi
~/miniconda3/bin/conda init bash
shell: bash
- name: Preparing environment - Brew
run: |-
brew update
brew upgrade git
brew install fish
brew install zsh
brew cleanup
shell: bash
- name: Preparing environment - Hydra
run: |-
source $HOME/.bash_profile
echo $PATH
conda create -n hydra python=${{ inputs.py_version }} -yqc conda-forge
conda run -n hydra pip install nox --progress-bar off
shell: bash
- name: save_cache
uses: actions/[email protected]
with:
path: |-
~/miniconda3
~/Library/Caches/Homebrew
key: "-${{ inputs.cache_key_version }}-macos-sys-{{ .Branch }}-${{ inputs.py_version }}"
Loading
Loading