-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 1.21 KB
/
compileBlender.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
name: Compile Blender
# Controls when the action will run. Triggers the workflow on push or pull request
on: workflow_dispatch
#GitHub doesn't allow one of the commands required without setting this to true apparently
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- name : Setup Environment Variables
shell: python
run: |
import os
from os import path
main_dir = path.join(os.getcwd(),'..')
main_dir = path.abspath(main_dir)
print("::set-env name=_MAIN_DIR::{}".format(main_dir))
- name: Cache build environment
uses: actions/cache@v2
env:
cache-name: ${{ github.ref }}-${{ runner.os }}
with:
path: ${{ env._MAIN_DIR }}
key: build-cache-${{ env.cache-name }}
- uses: actions/checkout@v2
- name: Build.py
run: python blender/build.py