Skip to content

ci: Use sccache for conda worflows #2285

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
16 changes: 16 additions & 0 deletions .github/workflows/build_with_conda.yml
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@ jobs:
runs-on: ubuntu-22.04
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
SCCACHE_GHA_VERSION: ${{vars.SCCACHE_GHA_VERSION || 1}}
services:
mongodb:
image: mongo:4.4
@@ -40,6 +41,11 @@ jobs:
uses: SimenB/github-actions-cpu-cores@v1.1.0
id: cpu-cores

- name: Configure sccache
uses: mozilla-actions/sccache-action@v0.0.9
with:
sccache-version: ${{vars.SCCACHE_GHA_VERSION || 1}}

- name: Install Conda environment from environment_unix.yml
uses: mamba-org/setup-micromamba@v2.0.0
with:
@@ -57,6 +63,8 @@ jobs:
env:
ARCTICDB_USING_CONDA: 1
ARCTICDB_BUILD_CPP_TESTS: 1
CMAKE_CXX_COMPILER_LAUNCHER: sccache
CMAKE_C_COMPILER_LAUNCHER: sccache

- name: Build C++ Tests
shell: bash -l {0}
@@ -114,6 +122,7 @@ jobs:
runs-on: ${{ inputs.run_on_arm_mac == true && 'macos-13-xlarge' || matrix.os }}
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
SCCACHE_GHA_VERSION: ${{vars.SCCACHE_GHA_VERSION || 1}}
steps:
- uses: actions/checkout@v3.3.0
# DONT use recursive submodules checkout to simulate conda feedstock build
@@ -124,6 +133,11 @@ jobs:
uses: SimenB/github-actions-cpu-cores@v1.1.0
id: cpu-cores

- name: Configure sccache
uses: mozilla-actions/sccache-action@v0.0.9
with:
sccache-version: ${{vars.SCCACHE_GHA_VERSION || 1}}

- name: Install Conda environment from environment_unix.yml
uses: mamba-org/setup-micromamba@v2.0.0
with:
@@ -142,6 +156,8 @@ jobs:
env:
ARCTICDB_USING_CONDA: 1
ARCTICDB_BUILD_CPP_TESTS: 1
CMAKE_CXX_COMPILER_LAUNCHER: sccache
CMAKE_C_COMPILER_LAUNCHER: sccache

- name: Build C++ Tests
shell: bash -l {0}

Unchanged files with check annotations Beta