-
-
Notifications
You must be signed in to change notification settings - Fork 94
67 lines (67 loc) · 2.75 KB
/
windows.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
name: windows
on:
push:
branches:
- master
jobs:
compile:
runs-on: windows-latest
env:
OF_URL: https://github.com/openframeworks/openFrameworks/releases/download/0.11.2/of_v0.11.2_msys2_mingw64_release.zip
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: unzip git
msystem: MINGW64
- uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Download openFrameworks and add ofxPiMapper to addons
run: |
mkdir .ofxPiMapper
mv ./* .ofxPiMapper/
wget ${OF_URL} --tries=10 --quiet
echo "Unarchive openFrameworks"
OF_ARCHIVE_NAME=$(basename -- "$OF_URL")
unzip ${OF_ARCHIVE_NAME}
rm ${OF_ARCHIVE_NAME}
OF_EXTRACT_NAME=$(basename ${OF_ARCHIVE_NAME} .zip)
mv ${OF_EXTRACT_NAME} openFrameworks
mv .ofxPiMapper openFrameworks/addons/ofxPiMapper
- name: Install openFrameworks Dependencies
working-directory: ./openFrameworks/scripts/msys2
run: ./install_dependencies.sh --noconfirm
- name: Apply patches
working-directory: ./openFrameworks/addons/ofxPiMapper/patches/msys2
run: ./patch.sh
- name: Compile openFrameworks
working-directory: ./openFrameworks/scripts/msys2
run: ./compileOF.sh
- name: Compile example_basic
working-directory: ./openFrameworks/addons/ofxPiMapper/example_basic
run: mv addons.make.norpi addons.make && make
- name: Compile example_camera
working-directory: ./openFrameworks/addons/ofxPiMapper/example_camera
run: mv addons.make.norpi addons.make && make
- name: Compile example_fbo-sources
working-directory: ./openFrameworks/addons/ofxPiMapper/example_fbo-sources
run: mv addons.make.norpi addons.make && make
- name: Compile example_pocketvj
working-directory: ./openFrameworks/addons/ofxPiMapper/example_pocketvj
run: mv addons.make.norpi addons.make && make
- name: Install ofxJSON dependency
working-directory: ./openFrameworks/addons/
run: git clone https://github.com/jeffcrouse/ofxJSON.git --depth 1
- name: Compile example_remote-client
working-directory: ./openFrameworks/addons/ofxPiMapper/example_remote-client
run: mv addons.make.norpi addons.make && make
- name: Compile example_remote-server
working-directory: ./openFrameworks/addons/ofxPiMapper/example_remote-server
run: mv addons.make.norpi addons.make && make
- name: Compile example_simpler
working-directory: ./openFrameworks/addons/ofxPiMapper/example_simpler
run: mv addons.make.norpi addons.make && make