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 7, 2024
1 parent 08a9967 commit cb0380a
Showing 1 changed file with 16 additions and 41 deletions.
57 changes: 16 additions & 41 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -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

0 comments on commit cb0380a

Please sign in to comment.