Skip to content

Commit

Permalink
Github Actions and download libs fix for VS2019
Browse files Browse the repository at this point in the history
  • Loading branch information
danoli3 committed Jan 11, 2025
1 parent 1aa4fcd commit 11baccc
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/of.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,48 @@ jobs:
msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=debug /p:platform=${{ matrix.platform }} /p:PlatformToolset=v143
msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v143
build-vs2019:
runs-on: windows-2019
strategy:
matrix:
platform: [x64]
env:
BITS: ${{ matrix.bits }}
steps:
- name: Clone repository
uses: actions/checkout@v4

- uses: msys2/[email protected]
with:
update: true
install: >-
git
unzip
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
with:
vs-version: 2019

- name: Download libs
run: ./scripts/vs/download_libs.sh --legacy -t $RELEASE -a ${{matrix.cfg.libs}}

- name: Download projectGenerator
run: ./scripts/vs/download_projectGenerator.sh

- name: Build DEBUG and RELEASE emptyExample
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: |
msbuild examples/templates/emptyExample/emptyExample.vcxproj /p:configuration=debug /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142
msbuild examples/templates/emptyExample/emptyExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142
- name: Build DEBUG and RELEASE allAddonsExample
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: |
msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=debug /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142
msbuild examples/templates/allAddonsExample/allAddonsExample.vcxproj /p:configuration=release /p:platform=${{ matrix.platform }} /p:PlatformToolset=v142
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

rpi-build:
Expand Down
9 changes: 7 additions & 2 deletions scripts/dev/download_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,13 @@ elif [ "$ARCH" == "" ] && [ "$PLATFORM" == "vs" ]; then
fi
elif [ "$PLATFORM" == "vs" ]; then
if [[ $BLEEDING_EDGE = 1 ]] ; then
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_1.zip \
openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_2.zip"
if [[ $LEGACY == 1 ]]; then
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_2019_64_1.zip \
openFrameworksLibs_${VER}_${PLATFORM}_2019_64_2.zip"
else
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_1.zip \
openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_2.zip"
fi
else
PKGS="openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_1.zip \
openFrameworksLibs_${VER}_${PLATFORM}_${ARCH}_2.zip \
Expand Down

0 comments on commit 11baccc

Please sign in to comment.