mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-09-09 00:03:00 +02:00
cache conda environment
This commit is contained in:
parent
d31b3a08db
commit
1dae4c4c5f
1 changed files with 11 additions and 26 deletions
37
.github/workflows/central-controller.yaml
vendored
37
.github/workflows/central-controller.yaml
vendored
|
@ -14,36 +14,21 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# - name: Get Date
|
|
||||||
# id: get-date
|
|
||||||
# run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
|
|
||||||
# shell: bash
|
|
||||||
# - name: Cache Conda
|
|
||||||
# uses: actions/cache@v4
|
|
||||||
# with:
|
|
||||||
# path: ~/miniconda3
|
|
||||||
# key: ${{ runner.os }}-${{ runner.arch }}-${{ steps.get-date.outputs.today }}-conda-${{ hashFiles('**/environment.yml') }}
|
|
||||||
- name: Setup Miniconda
|
- name: Setup Miniconda
|
||||||
uses: conda-incubator/setup-miniconda@v3
|
uses: conda-incubator/setup-miniconda@v3
|
||||||
with:
|
with:
|
||||||
conda-remove-defaults: true
|
miniconda-version: latest
|
||||||
miniconda-version: "latest"
|
|
||||||
auto-update-conda: false
|
|
||||||
channel-priority: strict
|
|
||||||
activate-environment: central_controller
|
activate-environment: central_controller
|
||||||
environment-file: environment.yml
|
- name: Conda Environment Cache
|
||||||
use-only-tar-bz2: false
|
id: cache
|
||||||
# - name: Activate Conda
|
uses: actions/cache@v4
|
||||||
# run: |
|
with:
|
||||||
# echo "CONDA_BASE=$(conda info --base)" >> $GITHUB_ENV
|
path: ${{ env.CONDA }}/envs
|
||||||
# source "$CONDA_BASE/etc/profile.d/conda.sh"
|
key: ${{ runner.os }}-${{ runner.arch }}-conda-${{ hashFiles('environment.yml') }}
|
||||||
# conda activate central_controller
|
- name: Update Conda Environment
|
||||||
# - name: Setup CMake
|
run:
|
||||||
# uses: threeal/cmake-action@v2.1.0
|
source ~/miniconda3/etc/profile.d/conda.sh
|
||||||
# with:
|
conda env update --file environment.yml
|
||||||
# options: |
|
|
||||||
# CMAKE_BUILD_TYPE=Release
|
|
||||||
# ZT1_CENTRAL_CONTROLLER=1
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
source ~/miniconda3/etc/profile.d/conda.sh
|
source ~/miniconda3/etc/profile.d/conda.sh
|
||||||
|
|
Loading…
Add table
Reference in a new issue