Skip to content

Commit

Permalink
Add actual ci using F3D (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal authored Apr 23, 2024
1 parent 911367d commit 79c1ad7
Showing 1 changed file with 31 additions and 10 deletions.
41 changes: 31 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,34 @@ jobs:
runs-on: windows-latest
name: CI
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: 'source'
fetch-depth: 0

- name: Test action
uses: ./source/
with:
path: test_dir

- 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

0 comments on commit 79c1ad7

Please sign in to comment.