forked from sebleedelisle/ofxLaser
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (60 loc) · 2.47 KB
/
build-vs2022.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
name: build-vs
# make the action not run on the local repo if the branch is also in a pull request to OF/OF
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-vs2022:
runs-on: windows-2022
strategy:
matrix:
platform: [x64, ARM64, ARM64EC]
env:
BITS: ${{ matrix.bits }}
steps:
- name: checkout openframeworks
uses: actions/checkout@v4
with:
repository: openframeworks/openFrameworks
# now we add in ofxLaser as addon
- name: checkout ofxLaser
uses: actions/checkout@v4
with:
path: ${{ github.workspace }}/addons/ofxLaser
# and here we replace the empty example with the hello laser example
- name: remove emptyExample
run: rm -r ${{ github.workspace }}/examples/templates/emptyExample
- name: replace emptyExample with example_HelloLaser
run: cp -r ${{ github.workspace }}/addons/ofxLaser/example_HelloLaser ${{ github.workspace }}/examples/templates/emptyExample
# continue openframeworks defined pipeline
- uses: msys2/setup-msys2@v2.22.0
with:
update: true
install: >-
git
unzip
rsync
wget
- name: Install dependencies
shell: msys2 {0}
run:
./scripts/ci/vs/install_bleeding.sh
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Build emptyExample
working-directory: ${{env.GITHUB_WORKSPACE}}
run:
msbuild examples/templates/emptyExample/emptyExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v143
- name: Build allAddonsExample
working-directory: ${{env.GITHUB_WORKSPACE}}
run:
msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v143
- name: Build DEBUG emptyExample
working-directory: ${{env.GITHUB_WORKSPACE}}
run:
msbuild examples/templates/emptyExample/emptyExample.vcxproj /p:configuration=debug /p:platform=${{ matrix.platform }} /p:PlatformToolset=v143
- name: Build DEBUG allAddonsExample
working-directory: ${{env.GITHUB_WORKSPACE}}
run:
msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=debug /p:platform=${{ matrix.platform }} /p:PlatformToolset=v143