Skip to content

Commit

Permalink
Update the CI workflows to clean up deprecation warnings. (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcolmnixon authored Jul 7, 2024
1 parent ff6bdf6 commit 8c7b0d9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/build-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ on:
jobs:
build:
name: Assembling artifacts
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

# Note, to satisfy the asset library we need to make sure our zip files have a root folder
# this is why we checkout into demo/godot-xr-tools
# and build plugin/godot-xr-tools
steps:
# Check out into demo/godot-xr-tools
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: demo/godot-xr-tools

# Assemble the plugin folder and clean up the demo folder
- name: Create XR tools plugin
run: |
mkdir plugin
Expand All @@ -28,32 +31,40 @@ jobs:
cp demo/godot-xr-tools/VERSIONS.md plugin/godot-xr-tools/addons/godot-xr-tools
rm -rf demo/godot-xr-tools/.git
rm -rf demo/godot-xr-tools/.github
# Upload plugin
- name: Create XR tools library artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: godot-xr-tools
path: |
plugin
# Upload demo
- name: Create XR tools demo artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: godot-xr-tools-demo
path: |
demo
# For tagged builds create the artifact zips
- name: Zip asset
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
cd plugin
zip -qq -r ../godot-xr-tools.zip godot-xr-tools
cd ../demo
zip -qq -r ../godot-xr-tools-demo.zip godot-xr-tools
cd ..
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
# For tagged builds create the release
- name: Create and upload asset
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "godot-xr-tools.zip,godot-xr-tools-demo.zip"
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
12 changes: 9 additions & 3 deletions .github/workflows/gdlint-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,23 @@ jobs:
runs-on: ubuntu-latest

steps:
# Check out the repository
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

# Ensure python is installed
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.10'

# Install gdtoolkit
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install 'gdtoolkit==4.*'
# Lint the godot-xr-tools addon
- name: Lint Godot XR Tools
run: |
gdlint addons/godot-xr-tools

0 comments on commit 8c7b0d9

Please sign in to comment.