forked from jupyterlite/jupyterlite
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.29 KB
/
win-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Windows Dev
on:
push:
branches:
- main
pull_request:
branches:
- '*'
env:
CACHE_EPOCH: 3
CI: 0
WIN_DEV_IN_CI: 1
jobs:
win-dev:
runs-on: windows-latest
defaults:
run:
shell: cmd /C CALL {0}
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v3
- name: Conda
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: .binder/environment.yml
miniforge-variant: Mambaforge
use-mamba: true
- name: Cache (node_modules)
uses: actions/cache@v3
id: cache-node-modules
with:
path: node_modules/
key: |
${{ env.CACHE_EPOCH }}-${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
- name: Node
run: doit setup || doit setup || doit setup
- name: Build
run: doit build
- name: Dist
run: doit dist
- name: Dev
run: doit dev
- name: Lint
run: doit lint || doit lint || doit lint
- name: Move conda cache
run: |-
move C:\Users\runneradmin\conda_pkgs_dir C:\Users\runneradmin\not_conda_pkgs_dir