forked from openscad/openscad
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.32 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
42
43
44
45
46
47
48
49
50
51
name: windows
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: windows-latest
name: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup MSYS2 Environment
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
- name: Install MSYS2 Dependencies
run: |
pwd
./scripts/msys2-install-dependencies.sh
- name: Install Mesa
uses: ssciwr/setup-mesa-dist-win@v1
with:
version: '22.1.7'
build-type: 'release-mingw'
- name: Build OpenSCAD
run: |
git submodule update --init --recursive
mkdir build && cd build
cmake .. -G"Ninja" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DEXPERIMENTAL=ON -DSNAPSHOT=ON
cmake --build . -j2
cmake --install . --prefix=.
- name: Run Test Suite
run: |
cd build
ctest -j2
- name: Upload Test Result Report
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: Test Result Report (Windows)
path: |
build/Testing/Temporary/*_report.html
build/Testing/Temporary/LastTest.log