-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Windows x86_64 builds to unittests.yml
- Loading branch information
1 parent
fef586d
commit cae5c8e
Showing
1 changed file
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,24 +9,32 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_TERM_COLOR: | ||
|
||
LINUX_64_TARGET: x86_64-unknown-linux-gnu | ||
LINUX_64_LIB: libglecs.so | ||
|
||
WINDOWS_64_TARGET: x86_64-pc-windows-gnu | ||
WINDOWS_64_LIB: libglecs.dll | ||
|
||
jobs: | ||
build_linux_x86_64: | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-gnu | ||
- os: x86_64-unknown-linux-gnu | ||
target: libglecs.so | ||
glecs_lib: libglecs.so | ||
- os: windows-latest | ||
target: x86_64-pc-windows-gnu | ||
glecs_lib: libglecs.dll | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
|
||
- name: 🐙 Settup git environment | ||
- name: 🐙 Settup git environment ${{ runner.arch }} | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🗳️ Initialize submodules | ||
|
@@ -103,12 +111,22 @@ jobs: | |
uses: actions/cache/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: ./addons/glecs/bin/${{ env.LINUX_64_TARGET }}/release/libglecs.so | ||
path: ./addons/glecs/bin/${{ env.LINUX_64_TARGET }}/release/${{ env.LINUX_64_LIB }} | ||
# An explicit key for restoring and saving the cache | ||
key: glecslib.${{ env.LINUX_64_TARGET }} | ||
# An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms | ||
enableCrossOsArchive: true | ||
|
||
- name: 🪟 Load compiled library, Windows x86_64 | ||
uses: actions/cache/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: ./addons/glecs/bin/${{ env.WINDOWS_64_TARGET }}/release/${{ env.WINDOWS_64_LIB }} | ||
# An explicit key for restoring and saving the cache | ||
key: glecslib.${{ env.WINDOWS_64_TARGET }} | ||
# An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms | ||
enableCrossOsArchive: true | ||
|
||
- name: 🐍 Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
|