Skip to content

Commit

Permalink
{ci} Try micromamba?
Browse files Browse the repository at this point in the history
  • Loading branch information
asmaloney committed Apr 20, 2024
1 parent 787f1a1 commit ccec5e7
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Build

on: [push, pull_request]

defaults:
run:
shell: bash -leo pipefail {0}

jobs:
build:
strategy:
Expand Down Expand Up @@ -90,10 +94,6 @@ jobs:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}

defaults:
run:
shell: bash -el {0}

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -126,41 +126,40 @@ jobs:
- name: Install Dependencies (Windows)
if: matrix.platform == 'windows'
uses: conda-incubator/setup-miniconda@v3
uses: mamba-org/setup-micromamba@v1
with:
channels: conda-forge
environment-name: ci
cache-environment: true
init-shell: bash
create-args: xerces-c
log-level: info

- name: Install More Dependencies (Windows)
if: matrix.platform == 'windows'
run: |
conda install conda-forge::xerces-c
choco upgrade ccache ninja
ccache --version | head -n 1
echo "ninja $(ninja --version)"
- name: Output conda info (Windows)
if: matrix.platform == 'windows'
run: |
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort
echo "CMAKE_MODULE_PATH=/c/Users/runneradmin/micromamba/envs/ci/cmake" >> "$GITHUB_ENV"
- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
max-size: '5G'
key: ${{ matrix.os }}-${{ matrix.build_type }}

- name: Configure
run: >
- name: Setup
run: |
mkdir libE57Format-build
env | sort
- name: CMake Configure
run: >
cmake
-B libE57Format-build
-G "Ninja"
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-DCMAKE_MODULE_PATH="$CMAKE_MODULE_PATH"
-DE57_BUILD_SHARED=${{ matrix.build_shared }}
-DE57_BUILD_TEST=${{ matrix.build_test }}
-DE57_VALIDATION_LEVEL=${{ matrix.validation_level }}
Expand Down

0 comments on commit ccec5e7

Please sign in to comment.