Files
dusk/.gitea/workflows/build.yml
Dominic Masters 357607a89f
Some checks failed
Build Dusk / build-gamecube (push) Failing after 1m13s
Build Dusk / run-tests (push) Successful in 3m11s
Build Dusk / build-linux (push) Failing after 2m36s
Build Dusk / build-psp (push) Has been cancelled
more echoing
2026-02-06 14:52:45 -06:00

148 lines
5.1 KiB
YAML

name: Build Dusk
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-gamecube:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Install dependencies
run: |
apt-get update
sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc podman-docker containerd runc | cut -f1)
# Add Docker's official GPG key:
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt update --yes
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin --yes
- name: Build GameCube
run: |
sudo docker build -t dolbuild:latest -f .ci/dolphin/Dockerfile .
sudo docker run -w /app -v "$(pwd):/app" dolbuild:latest /bin/bash -c ' \
echo "Inside Docker:" && \
echo "Current dir" && \
realpath . && \
ls -l && \
echo "/app" && \
ls -l /app
'
- name: Copy GameCube
run: |
mkdir -p build/gitea/GameCube/Dusk
mv build/Dusk.dol build/gitea/GameCube/Dusk/Dusk.dol
mv build/dusk.dsk build/gitea/GameCube/Dusk/dusk.dsk
- name: Upload GameCube Binary
uses: actions/upload-artifact@v3
with:
name: dusk-gamecube
path: build/gitea/Gamecube
if-no-files-found: error
# build-wii:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v5
# - name: Install dependencies
# run: |
# apt-get update
# apt-get install -y docker.io
# - name: Build Wii
# run: |
# ./.ci/dolphin/build-wii.sh
# - name: Copy wii
# run: |
# mkdir -p build/gitea/Wii/apps/Dusk
# mv build/Dusk.dol build/gitea/Wii/apps/Dusk/boot.dol
# mv build/dusk.dsk build/gitea/Wii/apps/Dusk/dusk.dsk
# - name: Upload Wii Binary
# uses: actions/upload-artifact@v3
# with:
# name: dusk-wii
# path: build/gitea/Wii
# if-no-files-found: error
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- 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 for tests
run: cmake -S . -B build -DDUSK_BUILD_TESTS=ON -DDUSK_TARGET_SYSTEM=linux
- name: Build tests
run: cmake --build build -- -j$(nproc)
- name: Run tests
run: ctest --output-on-failure --test-dir build
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- 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=linux
- name: Build
run: cmake --build build -- -j$(nproc)
- name: List build output
run: ls -lh build
- name: Upload Linux binary
uses: actions/upload-artifact@v3
with:
name: dusk-linux
path: build/Dusk
if-no-files-found: error
build-psp:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- 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: actions/upload-artifact@v3
with:
name: dusk-psp
path: build/gitea/
if-no-files-found: error