-
Notifications
You must be signed in to change notification settings - Fork 3
105 lines (103 loc) · 3.3 KB
/
Copy pathmain.yml
File metadata and controls
105 lines (103 loc) · 3.3 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: CI
on: [push]
jobs:
build:
strategy:
matrix:
platform: [macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Run brew install pkg-config
run: |
brew update
brew install pkg-config
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
# Restore from cache the previously built ports. If cache-miss, download, build vcpkg.
- name: Restore from cache and install vcpkg
# Download and build vcpkg, without installing any port. If content is cached already, it is a no-op.
uses: lukka/run-vcpkg@v3
with:
vcpkgArguments: '@${{ env.vcpkgResponseFile }}'
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
appendedCacheKey: ${{ hashFiles(env.vcpkgResponseFile) }}
env:
vcpkgResponseFile: '${{ github.workspace }}/response_file_mac.txt'
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: install qt
run: |
brew install qt5
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: release build
run: ./scripts/build_mac.sh
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Upload Tools
uses: actions/upload-artifact@v1
with:
name: PSDtoSS6-${{ matrix.platform }}-${{ github.sha }}
path: out
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
win_build:
strategy:
matrix:
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Get latest CMake
uses: lukka/get-cmake@latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Restore from cache and install vcpkg
# Download and build vcpkg, without installing any port. If content is cached already, it is a no-op.
uses: lukka/run-vcpkg@v6
with:
vcpkgArguments: '@${{ env.vcpkgResponseFile }}'
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
appendedCacheKey: ${{ hashFiles(env.vcpkgResponseFile) }}
# Just install vcpkg for now, do not install any ports in this step yet.
#setupOnly: false
#additionalCachedPaths: ${{ env.buildDir }}/vcpkg_installed
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
vcpkgResponseFile: '${{ github.workspace }}/response_file_win.txt'
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{ runner.os }}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
mirror: 'http://mirrors.ocf.berkeley.edu/qt/'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: "set QT_PREFIX"
run: $env:QT_PREFIX = $env:Qt5_Dir
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: release build
shell: cmd
run: Scripts\build_win.bat
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Upload Tools
uses: actions/upload-artifact@v1
with:
name: PSDtoSS6-${{ matrix.platform }}-${{ github.sha }}
path: out
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'