-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.35 KB
/
ci.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
name: CI
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- main
concurrency:
group: '${{ github.workflow }}-${{ github.ref_name }}'
cancel-in-progress: true
jobs:
ci:
runs-on: windows-latest
name: CI
steps:
- name: Download and extract F3D Windows
shell: powershell
run: |
mkdir f3d
cd f3d
curl.exe -L --output f3d.zip --url https://github.com/f3d-app/f3d/releases/download/v2.4.0/F3D-2.4.0-Windows-x86_64.zip
C:\'Program Files'\7-Zip\7z.exe x f3d.zip
- name: Download and extract data and baselines
shell: powershell
run: |
mkdir data
cd data
curl.exe -L --output cow.vtp --url https://github.com/f3d-app/f3d-superbuild/raw/main/testing/data/cow.vtp
curl.exe -L --output TestSimple.png --url https://github.com/f3d-app/f3d-superbuild/raw/main/testing/baselines/TestSimple.png
- name: Checkout
uses: actions/checkout@v4
with:
path: 'source'
fetch-depth: 0
- name: Test action
uses: ./source/
with:
path: ${{github.workspace}}/f3d/F3D-2.4.0-Windows-x86_64/bin
- name: Check F3D can render with success
shell: bash
run: ./f3d/F3D-2.4.0-Windows-x86_64/bin/f3d.exe ./data/cow.vtp --resolution=300,300 --ref=./data/TestSimple.png