Skip to content

Commit

Permalink
add 32 bit workflow for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
halentin committed Jun 18, 2024
1 parent dc16f48 commit 4a6c78e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/callbackFunctions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: windows-latest
arch: -A Win32
env:
BUILD_TYPE: RelWithDebInfo
CMAKE_SOURCE_DIR: ${{github.workspace}}/src/FMI2/callbackFunctions
Expand All @@ -25,7 +28,7 @@ jobs:
uses: actions/checkout@v3

- name: Configure CMake
run: cmake -S ${{env.CMAKE_SOURCE_DIR}}/callbackFunctions -B ${{env.CMAKE_SOURCE_DIR}}/callbackFunctions/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
run: cmake -S ${{env.CMAKE_SOURCE_DIR}}/callbackFunctions -B ${{env.CMAKE_SOURCE_DIR}}/callbackFunctions/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{ matrix.arch }}

- name: Build C++ Sources
run: cmake --build ${{env.CMAKE_SOURCE_DIR}}/callbackFunctions/build --config ${{env.BUILD_TYPE}} --target install
Expand All @@ -39,12 +42,19 @@ jobs:
run: ${{env.CMAKE_SOURCE_DIR}}/callbackFunctions/build/test

- name: Archive production artifacts (win)
if: success() && matrix.os == 'windows-latest'
if: success() && matrix.os == 'windows-latest' && arch == ''
uses: actions/upload-artifact@v3
with:
name: callbackFunctions-win-binaries
path: src/FMI2/callbackFunctions/binaries/win64/

- name: Archive production artifacts (win32)
if: success() && matrix.os == 'windows-latest' && arch != ''
uses: actions/upload-artifact@v3
with:
name: callbackFunctions-win-binaries
path: src/FMI2/callbackFunctions/binaries/win32/

- name: Archive production artifacts (linux)
if: success() && matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -72,6 +82,12 @@ jobs:
name: callbackFunctions-win-binaries
path: src/FMI2/callbackFunctions/binaries/win64/

- name: Download windows x86 binaries
uses: actions/download-artifact@v3
with:
name: callbackFunctions-win-binaries
path: src/FMI2/callbackFunctions/binaries/win32/

- name: Download linux binaries
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 4a6c78e

Please sign in to comment.