-
Notifications
You must be signed in to change notification settings - Fork 33
86 lines (83 loc) · 2.4 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CI
on:
push:
branches:
- '*'
jobs:
linux:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Buildx
uses: docker/build-push-action@v3
with:
push: false
context: builders/linux
tags: webvfx
load: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new
# https://github.com/docker/build-push-action/issues/252
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Test
run: builders/linux/docker-run.sh
- name: Upload Failed Artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: failed-images-linux
path: build/linux/output
macos:
runs-on: macos-13
env:
XCODE_VER: 14.2
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Xcode
run: |
sudo xcode-select -s "/Applications/Xcode_${XCODE_VER}.app"
- name: Restore cached installation
uses: actions/cache/restore@v3
id: restore-cache
with:
path: build/macos/installed
key: ${{ runner.os }}-${{ hashFiles('builders/macos/versions') }}-${{ env.XCODE_VER }}
- name: Build installation
if: steps.restore-cache.outputs.cache-hit != 'true'
run: |
builders/macos/macos-build.sh
- name: Save cached installation
uses: actions/cache/save@v3
if: steps.restore-cache.outputs.cache-hit != 'true'
with:
path: build/macos/installed
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
- name: Install WebVfx
run: |
builders/macos/webvfx-build.sh
- name: Test
# Disable for now, no GPU on macos
# https://github.com/actions/virtual-environments/issues/1779#issuecomment-707071183
if: false
run: |
builders/macos/webvfx-runtests.sh
- name: Failed Artifacts
if: failure()
uses: actions/upload-artifact@v3
with:
name: failed-images-macos
path: build/macos/output