Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions #6

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/godot-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ runs:
using: "composite"
steps:
# Use python 3.x release (works cross platform)
- name: Set up Python 3.x
uses: actions/setup-python@v4
- name: Set up Python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
# Semantic version range syntax or exact version of a Python version
python-version: ${{ inputs.python-version }}
Expand Down
43 changes: 17 additions & 26 deletions .github/workflows/switch_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,35 @@ on:
# Global Cache Settings
env:
GODOT_BASE_BRANCH: 3.5
SCONSFLAGS: verbose=yes warnings=all werror=no debug_symbols=no
SCONS_CACHE_LIMIT: 4096

jobs:
switch-template:
runs-on: ubuntu-latest
runs-on: "ubuntu-20.04"
container: devkitpro/devkita64

name: Template (target=release, tools=no)

steps:
- uses: actions/checkout@v3

# Upload cache on completion and check it out now
- name: Load .scons_cache directory
id: switch-template-cache
uses: actions/cache@v2
- name: Setup Godot build cache
uses: ./.github/actions/godot-cache
with:
path: ${{github.workspace}}/.scons_cache/
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
restore-keys: |
${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}}
${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}
${{github.job}}-${{env.GODOT_BASE_BRANCH}}

- name: Install scons from pip
run: |
sudo apt-get update
sudo apt-get -y install python3-pip
sudo python3 -m pip install scons
cache-name: switch-template
continue-on-error: true

- name: Compilation
env:
SCONS_CACHE: ${{github.workspace}}/.scons_cache/
run: |
scons -j2 verbose=yes warnings=all werror=no platform=switch target=release tools=no
- name: Setup python and scons
uses: ./.github/actions/godot-deps

- uses: actions/upload-artifact@v2
- name: Compilation
uses: ./.github/actions/godot-build
with:
name: ${{ github.job }}
path: bin/*
retention-days: 14
sconsflags: ${{ env.SCONSFLAGS }}
platform: switch
target: release
tools: false

- name: Upload artifact
uses: ./.github/actions/upload-artifact
25 changes: 8 additions & 17 deletions .github/workflows/vita_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
env:
GODOT_BASE_BRANCH: 3.5
SCONSFLAGS: verbose=yes warnings=all werror=no debug_symbols=no
VITASDK: /usr/local/vitasdk
EUID: 1 makepkg

concurrency:
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-vita
Expand All @@ -16,37 +14,30 @@ concurrency:
jobs:
vita-template:
runs-on: "ubuntu-20.04"
container: halotroop2288/vitasdk-ubuntu

name: Template (target=release, tools=no)

steps:
- uses: actions/checkout@v2

# Azure repositories are not reliable, we need to prevent azure giving us packages.
- name: Make apt sources.list use the default Ubuntu repositories
run: |
sudo rm -f /etc/apt/sources.list.d/*
sudo cp -f misc/ci/sources.list /etc/apt/sources.list
sudo apt-get update
- name: Setup Godot build cache
uses: ./.github/actions/godot-cache
with:
cache-name: vita-template
continue-on-error: true

- name: Setup python and scons
uses: ./.github/actions/godot-deps

- name: Setup VitaSDK
- name: Setup PVR_PSP2
run: |
sudo apt-get install cmake libarchive-tools fakeroot zip -y
git clone https://github.com/vitasdk/vdpm
su user
git clone https://github.com/isage/vita-packages-extra
cd vdpm
./bootstrap-vitasdk.sh
./install-all.sh
export PATH=$VITASDK/bin:$PATH
vdpm vita-rss-libdl
cd ../vita-packages-extra/pvr_psp2
cd vita-packages-extra/pvr_psp2
vita-makepkg
vdpm *-arm.tar.xz

- name: Compilation
uses: ./.github/actions/godot-build
with:
Expand Down
Loading