This commit is contained in:
146
.github/workflows/build.yml
vendored
146
.github/workflows/build.yml
vendored
@@ -35,130 +35,42 @@ jobs:
|
|||||||
# path: build-linux/Dusk
|
# path: build-linux/Dusk
|
||||||
# if-no-files-found: error
|
# if-no-files-found: error
|
||||||
|
|
||||||
build-psp:
|
# build-psp:
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# steps:
|
||||||
|
# - name: Checkout repository
|
||||||
|
# uses: actions/checkout@v4
|
||||||
|
# - name: Set up Docker
|
||||||
|
# uses: docker/setup-docker-action@v5
|
||||||
|
# - name: Build psp
|
||||||
|
# run: ./scripts/build-psp-docker.sh
|
||||||
|
# - name: Move EBOOT.PBP to Dusk subfolder
|
||||||
|
# run: |
|
||||||
|
# mkdir -p ./git-artifcats/Dusk/PSP/GAME/Dusk
|
||||||
|
# cp build-psp/EBOOT.PBP ./git-artifcats/Dusk/PSP/GAME/Dusk/EBOOT.PBP
|
||||||
|
# - name: Upload psp binary
|
||||||
|
# uses: actions/upload-artifact@v6
|
||||||
|
# with:
|
||||||
|
# name: dusk-psp
|
||||||
|
# path: ./git-artifcats/Dusk
|
||||||
|
# if-no-files-found: error
|
||||||
|
|
||||||
|
build-gamecube:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set up Docker
|
- name: Set up Docker
|
||||||
uses: docker/setup-docker-action@v5
|
uses: docker/setup-docker-action@v5
|
||||||
- name: Build psp
|
- name: Build GameCube
|
||||||
run: ./scripts/build-psp-docker.sh
|
run: ./scripts/build-gamecube-docker.sh
|
||||||
- name: Move EBOOT.PBP to Dusk subfolder
|
- name: Copy output files.
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./git-artifcats/Dusk/PSP/GAME/Dusk
|
mkdir -p ./git-artifcats/Dusk
|
||||||
cp build-psp/EBOOT.PBP ./git-artifcats/Dusk/PSP/GAME/Dusk/EBOOT.PBP
|
cp build-gamecube/Dusk.dol ./git-artifcats/Dusk/Dusk.dol
|
||||||
- name: Upload psp binary
|
cp build-gamecube/dusk.dsk ./git-artifcats/Dusk/dusk.dsk
|
||||||
|
- name: Upload GameCube binary
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: dusk-psp
|
name: dusk-gamecube
|
||||||
path: ./git-artifcats/Dusk
|
path: ./git-artifcats/Dusk
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
# build-psp:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - name: Checkout repository
|
|
||||||
# uses: https://git.wish.moe/YourWishes/checkout@main
|
|
||||||
# - name: Install dependencies
|
|
||||||
# run: |
|
|
||||||
# apt-get update
|
|
||||||
# apt-get install -y build-essential cmake python3 python3-pip python3-polib python3-pil libsdl2-dev libgl1-mesa-dev libzip-dev python3-dotenv python3-pyqt5 python3-opengl liblua5.3-dev
|
|
||||||
# - name: Configure CMake
|
|
||||||
# run: cmake -S . -B build -DDUSK_TARGET_SYSTEM=psp -DENABLE_TESTS=OFF
|
|
||||||
# - name: Build
|
|
||||||
# run: cmake --build build -- -j$(nproc)
|
|
||||||
# - name: Move EBOOT.PBP to Dusk subfolder
|
|
||||||
# run: |
|
|
||||||
# mkdir -p build/gitea/Dusk
|
|
||||||
# mv build/EBOOT.PBP build/gitea/Dusk/EBOOT.PBP
|
|
||||||
# - name: List build output
|
|
||||||
# run: ls -lh build/gitea/Dusk
|
|
||||||
# - name: Upload PSP binary
|
|
||||||
# uses: https://git.wish.moe/YourWishes/upload-artifact@v3/node20
|
|
||||||
# with:
|
|
||||||
# name: dusk-psp
|
|
||||||
# path: build/gitea/
|
|
||||||
# if-no-files-found: error
|
|
||||||
|
|
||||||
# build-dolphin:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# steps:
|
|
||||||
# - name: Checkout repository
|
|
||||||
# uses: https://git.wish.moe/YourWishes/checkout@main
|
|
||||||
# - name: Install dependencies
|
|
||||||
# run: |
|
|
||||||
# # Install devkit pacman
|
|
||||||
# if ! [ $(id -u) = 0 ]; then
|
|
||||||
# echo "Need root privilege to install!"
|
|
||||||
# exit 1
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# # ensure apt is set up to work with https sources
|
|
||||||
# apt-get install apt-transport-https
|
|
||||||
|
|
||||||
# # Store devkitPro gpg key locally if we don't have it already
|
|
||||||
# if ! [ -f /usr/share/keyring/devkitpro-pub.gpg ]; then
|
|
||||||
# mkdir -p /usr/share/keyring/
|
|
||||||
# wget -U "dkp apt" -O /usr/share/keyring/devkitpro-pub.gpg https://apt.devkitpro.org/devkitpro-pub.gpg
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# # Add the devkitPro apt repository if we don't have it set up already
|
|
||||||
# if ! [ -f /etc/apt/sources.list.d/devkitpro.list ]; then
|
|
||||||
# echo "deb [signed-by=/usr/share/keyring/devkitpro-pub.gpg] https://apt.devkitpro.org stable main" > /etc/apt/sources.list.d/devkitpro.list
|
|
||||||
# fi
|
|
||||||
# apt-get update
|
|
||||||
# apt-get install devkitpro-pacman --yes
|
|
||||||
# apt-get install --yes build-essential cmake python3 python3-pip python3-polib python3-pil python3-dotenv python3-pyqt5 python3-opengl
|
|
||||||
|
|
||||||
# sudo dkp-pacman -Syu --noconfirm
|
|
||||||
# sudo dkp-pacman -S gamecube-dev wii-dev ppc-liblzma ppc-libzip --needed --noconfirm
|
|
||||||
|
|
||||||
# - name: Build GameCube
|
|
||||||
# run: |
|
|
||||||
# export DEVKITPRO=/opt/devkitpro
|
|
||||||
# export DEVKITPPC=/opt/devkitpro/devkitPPC
|
|
||||||
# export PATH="$DEVKITPPC/bin:$DEVKITPRO/tools/bin:$PATH"
|
|
||||||
# mkdir -p build-gamecube
|
|
||||||
# cmake -S. -Bbuild-gamecube -DDUSK_TARGET_SYSTEM=gamecube -DCMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/GameCube.cmake"
|
|
||||||
# cd build-gamecube
|
|
||||||
# make -j$(nproc) VERBOSE=1
|
|
||||||
|
|
||||||
# - name: Copy GameCube
|
|
||||||
# run: |
|
|
||||||
# ls -l
|
|
||||||
# mkdir -p build/gitea/GameCube/Dusk
|
|
||||||
# mv build-gamecube/Dusk.dol build/gitea/GameCube/Dusk/Dusk.dol
|
|
||||||
# mv build-gamecube/dusk.dsk build/gitea/GameCube/Dusk/dusk.dsk
|
|
||||||
|
|
||||||
# - name: Upload GameCube Binary
|
|
||||||
# uses: https://git.wish.moe/YourWishes/upload-artifact@v3/node20
|
|
||||||
# with:
|
|
||||||
# name: dusk-gamecube
|
|
||||||
# path: build/gitea/GameCube
|
|
||||||
# if-no-files-found: error
|
|
||||||
|
|
||||||
# - name: Build Wii
|
|
||||||
# run: |
|
|
||||||
# export DEVKITPRO=/opt/devkitpro
|
|
||||||
# export DEVKITPPC=/opt/devkitpro/devkitPPC
|
|
||||||
# export PATH="$DEVKITPPC/bin:$DEVKITPRO/tools/bin:$PATH"
|
|
||||||
# mkdir -p build-wii
|
|
||||||
# cmake -S. -Bbuild-wii -DDUSK_TARGET_SYSTEM=wii -DCMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/Wii.cmake"
|
|
||||||
# cd build-wii
|
|
||||||
# make -j$(nproc) VERBOSE=1
|
|
||||||
|
|
||||||
# - name: Copy Wii
|
|
||||||
# run: |
|
|
||||||
# ls -l
|
|
||||||
# mkdir -p build/gitea/Wii/apps/Dusk
|
|
||||||
# mv build-wii/Dusk.dol build/gitea/Wii/apps/Dusk/boot.dol
|
|
||||||
# mv build-wii/dusk.dsk build/gitea/Wii/apps/Dusk/dusk.dsk
|
|
||||||
# cp .ci/dolphin/meta.xml build/gitea/Wii/apps/Dusk/meta.xml
|
|
||||||
|
|
||||||
# - name: Upload Wii Binary
|
|
||||||
# uses: https://git.wish.moe/YourWishes/upload-artifact@v3/node20
|
|
||||||
# with:
|
|
||||||
# name: dusk-wii
|
|
||||||
# path: build/gitea/Wii
|
|
||||||
# if-no-files-found: error
|
|
||||||
Reference in New Issue
Block a user