-
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.
- Loading branch information
1 parent
08a9967
commit cb0380a
Showing
1 changed file
with
16 additions
and
41 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 |
---|---|---|
|
@@ -25,17 +25,20 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: π Initialize submodules | ||
- name: π Settup git environment | ||
uses: actions/checkout@v4 | ||
|
||
- name: π³οΈ Initialize submodules | ||
run: git submodule update --init --recursive | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
- name: πΎ Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: "./addons/glecs/rust/glecs" | ||
cache-on-failure: true | ||
|
||
- name: π¦ Update Rust | ||
- name: ποΈ Update Rust | ||
run: | | ||
rustup update | ||
rustup target add ${{ matrix.target }} | ||
|
@@ -68,7 +71,7 @@ jobs: | |
run: | | ||
godot -s res://addons/gut/gut_cmdln.gd --headless -gdir="res://unittests" -gexit | ||
- name: Cache compiled library | ||
- name: πΎ Cache compiled library | ||
uses: actions/cache/[email protected] | ||
with: | ||
# A list of files, directories, and wildcard patterns to cache and restore | ||
|
@@ -90,7 +93,8 @@ jobs: | |
run: | | ||
exit 0 | ||
- uses: actions/checkout@v4 | ||
- name: π Settup git environment | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
persist-credentials: false | ||
|
@@ -105,7 +109,7 @@ jobs: | |
# 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 | ||
- name: π Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.11.2 | ||
|
@@ -130,7 +134,8 @@ jobs: | |
run: | | ||
cp -r -force ./addons/glecs/* ../nightly/ | ||
- name: add-and-commit | ||
- name: β Add / Commit to nightly | ||
id: add-and-commit | ||
continue-on-error: true | ||
run: | | ||
cd ../nightly | ||
|
@@ -141,7 +146,7 @@ jobs: | |
# Prevent error | ||
echo "" | ||
- name: π€ Push | ||
- name: π€ Push to nightly | ||
if: steps.add-and-commit.outcome == 'success' | ||
uses: ad-m/github-push-action@master | ||
with: | ||
|
@@ -150,35 +155,5 @@ jobs: | |
branch: nightly | ||
directory: ../nightly | ||
|
||
- name: finish | ||
run: exit 0 | ||
|
||
|
||
# nightly_unittests_linux_x86_64: | ||
|
||
# needs: update_nightly | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
# - name: π Checkout nightly branch | ||
# run: | | ||
# git fetch | ||
# git branch nightly | ||
|
||
# - name: π€ Setup Godot | ||
# uses: chickensoft-games/setup-godot@v1 | ||
# with: | ||
# # Version must include major, minor, and patch, and be >= 4.0.0 | ||
# version: 4.2.1 | ||
|
||
# # This shouldn't be needed because the important files from .godot are | ||
# # included, but we run the import process just in case. | ||
# - name: π§ Run Godot import | ||
# run: | | ||
# godot --headless --editor --quit-after 100 | ||
|
||
# - name: βοΈ Run unittests | ||
# run: | | ||
# godot -s res://addons/gut/gut_cmdln.gd --headless -gdir="res://unittests" -gexit | ||
- name: π Finish | ||
run: exit 0 |