-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (39 loc) · 1.36 KB
/
windows.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
name: Windows CI
on: [ push, pull_request ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: oprypin/install-crystal@v1
- uses: actions/checkout@v2
- name: Cache GSL binaries
id: cache-gsl
uses: actions/cache@v2
with:
path: |
gsl/lib/x64/Debug/gsl.lib
gsl/lib/x64/Debug/cblas.lib
key: static-x64-Debug-bbf6741a0759a2468c2aa40c501f9cf99b04b427
- name: Checkout GSL
if: steps.cache-gsl.outputs.cache-hit != 'true'
uses: actions/checkout@v2
with:
repository: BrianGladman/gsl
path: gsl
ref: bbf6741a0759a2468c2aa40c501f9cf99b04b427 # master @ 2022-02-01
- name: Add msbuild to PATH
if: steps.cache-gsl.outputs.cache-hit != 'true'
uses: microsoft/[email protected]
- name: compile GSL
if: steps.cache-gsl.outputs.cache-hit != 'true'
run: |
cd gsl
cd build.vc
msbuild gslhdrs/gslhdrs.vcxproj /p:Configuration=Debug /p:Platform=x64
msbuild gsl.lib.sln /p:Configuration=Debug /p:Platform=x64
- name: copy GSL libraries
run: |
cd gsl/lib/x64/Debug
copy cblas.lib D:\a\_temp\crystal-nightly-true-undefined\lib
copy gsl.lib D:\a\_temp\crystal-nightly-true-undefined\lib
- run: crystal spec