Skip to content

Provide docker containers using released conda packages instead of cu… #161

Provide docker containers using released conda packages instead of cu…

Provide docker containers using released conda packages instead of cu… #161

Workflow file for this run

name: Windows
on:
push:
paths-ignore:
- 'doc/**'
pull_request:
paths-ignore:
- 'doc/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
name: MSVC
runs-on: 'windows-latest'
strategy:
fail-fast: true
matrix:
type: ['floating']
defaults:
run:
shell: bash -l {0}
env:
BUILD_TYPE: ${{ matrix.type }}
CACHE_NUMBER: 0
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: Support longpaths
run: git config --system core.longpaths true
if: matrix.platform == 'windows-latest'
- name: Cache Conda Environment
uses: actions/cache@v2
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-${{ steps.get-date.outputs.today }}-conda-${{ env.CACHE_NUMBER }}
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
environment-file: scripts/ci/environment.yml
python-version: "3.10"
activate-environment: "entwine-build"
use-mamba: true
auto-update-conda: true
- name: Setup
shell: bash -l {0}
run: |
source ./scripts/ci/win/setup.sh
- name: CMake
shell: bash -l {0}
working-directory: ./build
run: |
source ../scripts/ci/win/cmake.sh
- name: Compile
shell: bash -l {0}
working-directory: ./build
run: |
source ../scripts/ci/win/compile.sh
- name: Paths
shell: bash -l {0}
run: |
echo "D:/a/entwine/entwine/build/bin" >> $GITHUB_PATH
- name: Test
shell: bash -l {0}
working-directory: ./build
run: |
source ../scripts/ci/win/test.sh