Skip to content

Commit 6e87fc4

Browse files
committed
Added GHA for Windows
1 parent d6ee00e commit 6e87fc4

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/windows.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Windows
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
defaults:
11+
run:
12+
shell: bash -e -l {0}
13+
jobs:
14+
build:
15+
runs-on: windows-latest
16+
steps:
17+
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Set conda environment
22+
uses: mamba-org/setup-micromamba@v2
23+
with:
24+
environment-file: environment-dev.yml
25+
cache-environment: true
26+
create-args: m2w64-gcc m2w64-make m2w64-toolchain m2-libbz2 posix
27+
28+
- name: Build Xtensor.R package
29+
run: |
30+
R CMD build --no-manual ${{ github.workspace }};
31+
32+
- name: Check Xtensor.R package
33+
run: |
34+
R CMD check --as-cran --no-manual ${{ github.workspace }}\xtensor_*.tar.gz
35+
36+
- name: Install Xtensor.R package
37+
run: |
38+
R CMD INSTALL ${{ github.workspace }}\xtensor_*.tar.gz
39+

0 commit comments

Comments
 (0)