-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 2 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
name: CI
on: [push, pull_request]
jobs:
mac:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Setup Qt
run: curl -L https://github.com/rodlie/NatronPluginManager/releases/download/continuous/qtbase-5.15-static-macos.tar.bz2 --output qt.tar.bz2 && sudo tar xf qt.tar.bz2 -C /opt
- name: Setup libzip
run: curl -L https://github.com/rodlie/NatronPluginManager/releases/download/continuous/libzip-HighSierra.tar.gz --output libzip.tar.gz && sudo tar xf libzip.tar.gz -C /opt
- name: Setup local
run: sudo mkdir -p /opt/local/lib && sudo cp -a /opt/libzip/lib/* /opt/local/lib/
- name: Build
run: CMAKE=cmake sh share/macos.sh
- name: Artifact
run: sudo cp -a build/NatronPluginManager.dmg /opt/
- uses: actions/upload-artifact@v2
with:
name: NatronPluginManager-${{github.sha}}-macOS-Intel
path: /opt/NatronPluginManager.dmg
windows:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup
run: sudo mkdir -p /opt/mxe-NatronPluginManager && sudo chmod 777 /opt/mxe-NatronPluginManager
- name: Setup SDK
run: wget https://github.com/rodlie/NatronPluginManager/releases/download/continuous/mxe-NatronPluginManager-20211230.tar.xz && tar xvf mxe-NatronPluginManager-20211230.tar.xz -C /opt/mxe-NatronPluginManager/
- name: Build
run: bash share/mingw.sh
- name: Artifact
run: sudo cp -a build/NatronPluginManager.exe /opt/
- uses: actions/upload-artifact@v2
with:
name: NatronPluginManager-${{github.sha}}-Windows-x64
path: /opt/NatronPluginManager.exe
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: apt install
run: sudo apt-get update && sudo apt-get install cmake qtbase5-dev libzip-dev
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- name: Build
run: cmake --build ${{github.workspace}}/build --config Release