-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (46 loc) · 1.75 KB
/
workflow_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
50
51
52
53
54
55
56
57
58
59
# workflow build and test the plugin.
# This workflow is triggered on push and pull requests.
# for a list of available software on the different virtual environments, please see:
# https://github.com/actions/virtual-environments/tree/main/images
name: CI
on: [push, pull_request]
env:
RHINO_TOKEN: ${{ secrets.RHINO_TOKEN }} # needed to run tests
RETENTION_DAYS: 15
jobs:
build:
runs-on: windows-latest
steps:
- name: 🛒 Checkout src
uses: actions/[email protected]
- name: 🦏 Install Rhino
uses: mcneel/setup-rhino3d@v2
id: setup_rhino
with:
email-address: ${{ secrets.EMAIL_ADDRESS }}
release-version: rc
- name: ✍️ Add to PATH
run: |
"C:\Program Files\Rhino 8\System" >> $env:GITHUB_PATH
- name: 🛠️ Build rhproj
id: buildproj
run: |
rhinocode project build D:\a\acadia_2024_script-to-deploy\acadia_2024_script-to-deploy\workflow_tools.rhproj
Set-Location -Path D:\a\acadia_2024_script-to-deploy\acadia_2024_script-to-deploy\build\rh8
Get-ChildItem workflow_tools-*.yak
$path=(Get-ChildItem workflow_tools-*.yak)
$file=$path.Name
"file=$file" >> $env:GITHUB_OUTPUT
"path=$path" >> $env:GITHUB_OUTPUT
yak install $file
- name: 🧪 test
run: |
Set-Location -Path D:\a\acadia_2024_script-to-deploy\acadia_2024_script-to-deploy\tests
dotnet build --framework "net7.0-windows"
dotnet test --no-build --verbosity normal --framework "net7.0-windows"
- name: 🎁 artifact
uses: actions/[email protected]
with:
path: ${{ steps.buildproj.outputs.path }}
name: ${{ steps.buildproj.outputs.file }}
retention-days: ${{ env.RETENTION_DAYS }}