Skip to content

Commit

Permalink
Update unittests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GsLogiMaker committed May 5, 2024
1 parent 40f1332 commit a2a0834
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,8 @@ jobs:

- name: 🦀 Update Rust
run: |
echo "TARGET=${{ env.LINUX_64_TARGET }}" >> $GITHUB_ENV
echo ---
echo ${TARGET}
echo ---
rustup update
rustup target add ${TARGET}
rustup target add ${{ env.LINUX_64_TARGET }}
- name: 🦀 Build Rust code
run: |
Expand All @@ -47,7 +43,7 @@ jobs:
--manifest-path ./addons/glecs/rust/glecs/Cargo.toml \
--features compile_bindings \
--target-dir ./addons/glecs/bin \
--target ${{ env.TARGET }}
--target ${{ env.LINUX_64_TARGET }}
# Copy library for use in test suite
cp ./addons/glecs/bin/${TARGET}/release ./addons/glecs/bin/debug -r
Expand All @@ -74,9 +70,9 @@ jobs:
uses: actions/cache/[email protected]
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: ./addons/glecs/bin/${{ env.TARGET }}/release
path: ./addons/glecs/bin/${{ env.LINUX_64_TARGET }}/release
# An explicit key for restoring and saving the cache
key: glecslib.${{ env.TARGET }}
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

Expand Down

0 comments on commit a2a0834

Please sign in to comment.