Skip to content

Commit

Permalink
use mamba environment
Browse files Browse the repository at this point in the history
  • Loading branch information
robinholzi committed May 5, 2024
1 parent da2d44b commit c30002d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
4 changes: 1 addition & 3 deletions .github/actions/environment_clang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ name: modyn-ci-tools
channels:
- conda-forge
dependencies:
- clang-18
- clang-tools
- clang-format-18
- cmake
4 changes: 2 additions & 2 deletions .github/workflows/build_dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
schedule:
- cron: '0 0 1 * *' # Run at midnight on the first of every month
workflow_dispatch:
pull_request:
branches: main
# pull_request:
# branches: main

concurrency:
group: grpc-build
Expand Down
23 changes: 10 additions & 13 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ jobs:
with:
environment-file: .github/actions/environment_clang.yaml
cache-environment: true
create-args: clang-18 clang-tools clang-format-18

- name: Setup pre-built grpc binaries
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -192,8 +193,8 @@ jobs:
matrix:
build-type: [ Release, Debug ]
compiler:
- { c: gcc, cxx: g++, version: 11 }
- { c: gcc, cxx: g++, version: 12 }
# - { c: gcc, cxx: g++, version: 11 }
# - { c: gcc, cxx: g++, version: 12 }
- { c: clang, cxx: clang++, version: 14 }
- { c: clang, cxx: clang++, version: 17, coverage: true }
include:
Expand All @@ -214,18 +215,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install ccache
run: |
sudo apt update
sudo apt install -y ccache
- name: Install clang version
if: ${{ matrix.compiler.version > 14 }}
uses: KyleMayes/install-llvm-action@v1
- name: Install clang environment
uses: mamba-org/setup-micromamba@v1
with:
version: ${{ matrix.compiler.version }}.0
env: true

environment-file: .github/actions/environment_clang.yaml
cache-environment: true
create-args: ccache clang=${{matrix.compiler.version}} libclang=${{matrix.compiler.version}} clang-tools=${{matrix.compiler.version}}
# gcc_linux-64=${{matrix.compiler.version}} gxx_linux-64=${{matrix.compiler.version}}

- name: Setup pre-built grpc binaries
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit c30002d

Please sign in to comment.