-
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 nightly building to unittests.yml
- Loading branch information
1 parent
65323fb
commit 4f0a56f
Showing
3 changed files
with
89 additions
and
127 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 |
---|---|---|
|
@@ -231,107 +231,87 @@ jobs: | |
echo "***" | ||
ls addons/glecs/bin | ||
# update_nightly: | ||
# if: ${{ github.event_name == 'push' || github.event_name == 'closed' }} | ||
# needs: ["compile_glecs", "run_test_suite"] | ||
# runs-on: windows-latest | ||
# steps: | ||
# - name: 🐙 Setup git environment | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# persist-credentials: false | ||
|
||
# - name: 🐧 Load compiled library, Linux x86_64 | ||
# uses: actions/cache/[email protected] | ||
# with: | ||
# # A list of files, directories, and wildcard patterns to cache and restore | ||
# path: ./addons/glecs/bin/x86_64-unknown-linux-gnu/release/libglecs.so | ||
# # An explicit key for restoring and saving the cache | ||
# key: ${{ needs.compile_glecs.outputs.x86_64_linux_bin_key }} | ||
# # 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, Linux i686 | ||
# uses: actions/cache/[email protected] | ||
# with: | ||
# # A list of files, directories, and wildcard patterns to cache and restore | ||
# path: ./addons/glecs/bin/i686-unknown-linux-gnu/release/libglecs.so | ||
# # An explicit key for restoring and saving the cache | ||
# key: ${{ needs.compile_glecs.outputs.i686-linux_bin_key }} | ||
# # 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, Mac aarch64 | ||
# uses: actions/cache/[email protected] | ||
# with: | ||
# # A list of files, directories, and wildcard patterns to cache and restore | ||
# path: ./addons/glecs/bin/aarch64-apple-darwin/release/libglecs.dylib | ||
# # An explicit key for restoring and saving the cache | ||
# key: ${{ needs.compile_glecs.outputs.aarch64-mac_bin_key }} | ||
# # 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, Mac x86_64 | ||
# uses: actions/cache/[email protected] | ||
# with: | ||
# # A list of files, directories, and wildcard patterns to cache and restore | ||
# path: ./addons/glecs/bin/x86_64-apple-darwin/release/libglecs.dylib | ||
# # An explicit key for restoring and saving the cache | ||
# key: ${{ needs.compile_glecs.outputs.x86_64-mac_bin_key }} | ||
# # 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/x86_64-pc-windows-gnu/release/glecs.dll | ||
# # An explicit key for restoring and saving the cache | ||
# key: ${{ needs.compile_glecs.outputs.x86_64-windows_bin_key }} | ||
# # 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: | ||
# python-version: 3.11.2 | ||
# cache: pip | ||
|
||
# - name: 🚣♂️ Convert dev plugin to nightly format | ||
# run: | | ||
# cd addons/glecs | ||
# pip install regex | ||
# python _build_for_nightly.py | ||
|
||
# - name: 🌙 Clone nightly branch | ||
# run: | | ||
# git clone https://github.com/${{ github.repository }} ../nightly_tmp -b nightly | ||
# mkdir ../nightly | ||
# mkdir ../nightly/.git | ||
# cp -r ../nightly_tmp/.git/* ../nightly/.git/ | ||
|
||
# - name: 🖨️ Copy dev branch plugin to nightly | ||
# run: | | ||
# cp -r -force ./addons/glecs/* ../nightly/ | ||
|
||
# - name: ➕ Add and commit to nightly | ||
# id: add-and-commit | ||
# continue-on-error: true | ||
# run: | | ||
# cd ../nightly | ||
# git config --global user.name github-actions[bot] | ||
# git config --global user.email [email protected] | ||
# git add . | ||
# git commit --all -m "(AUTO) ${{ github.event.head_commit.message }}" | ||
|
||
# - name: 📤 Push to nightly | ||
# uses: ad-m/github-push-action@master | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# repository: ${{ github.repository }} | ||
# branch: nightly | ||
# directory: ../nightly | ||
|
||
# - name: 🏁 Finish | ||
# run: exit 0 | ||
update_nightly: | ||
if: ${{ github.event_name == 'push' || github.event_name == 'closed' }} | ||
needs: ["compile_glecs", "run_test_suite"] | ||
runs-on: windows-latest | ||
steps: | ||
- name: 🐙 Setup git environment | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
persist-credentials: false | ||
|
||
- name: 🐧 Load compiled library, Linux x86_64 | ||
uses: actions/cache/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: ./addons/glecs/bin/x86_64-unknown-linux-gnu/release/libglecs.so | ||
# An explicit key for restoring and saving the cache | ||
key: ${{ needs.compile_glecs.outputs.bin_key_linux_x86_64 }} | ||
# 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, Mac x86_64 | ||
uses: actions/cache/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
path: ./addons/glecs/bin/x86_64-apple-darwin/release/libglecs.dylib | ||
# An explicit key for restoring and saving the cache | ||
key: ${{ needs.compile_glecs.outputs.bin_key_macos_x86_64 }} | ||
# 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/x86_64-pc-windows-gnu/release/glecs.dll | ||
# An explicit key for restoring and saving the cache | ||
key: ${{ needs.compile_glecs.outputs.bin_key_windows_x86_64 }} | ||
# 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: | ||
python-version: 3.11.2 | ||
cache: pip | ||
|
||
# - name: 🚣♂️ Convert dev plugin to nightly format | ||
# run: | | ||
# cd addons/glecs | ||
# pip install regex | ||
# python _build_for_nightly.py | ||
|
||
- name: 🌙 Clone nightly branch | ||
run: | | ||
git clone https://github.com/${{ github.repository }} ../nightly_tmp -b nightly | ||
mkdir ../nightly | ||
mkdir ../nightly/.git | ||
cp -r ../nightly_tmp/.git/* ../nightly/.git/ | ||
- name: 🖨️ Copy dev branch plugin to nightly | ||
run: | | ||
cp -r -force ./addons/glecs/* ../nightly/ | ||
- name: ➕ Add and commit to nightly | ||
id: add-and-commit | ||
continue-on-error: true | ||
run: | | ||
cd ../nightly | ||
git config --global user.name github-actions[bot] | ||
git config --global user.email [email protected] | ||
git add . | ||
git commit --all -m "(AUTO) ${{ github.event.head_commit.message }}" | ||
- name: 📤 Push to nightly | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
repository: ${{ github.repository }} | ||
branch: nightly | ||
directory: ../nightly | ||
|
||
- name: 🏁 Finish | ||
run: exit 0 |
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
This file was deleted.
Oops, something went wrong.