Fix Alpha warning label & CI Building

Signed-off-by: swurl <swurl@swurl.xyz>
This commit is contained in:
swurl 2025-04-13 19:35:59 -04:00 committed by edendev
parent 508659d9f6
commit dc7b5b6cb1
7 changed files with 429 additions and 126 deletions

View file

@ -1,13 +1,12 @@
# TODO: This document needs to be formatted,
# appimage should use linuxdeploy probably
# some stuff needs cleaned up etc
name: eden-build
on:
push:
branches: [ "*" ]
branches: [ "master" ]
tags: [ "*" ]
pull_request_target:
pull_request:
branches: [ master ]
jobs:
@ -26,7 +25,7 @@ jobs:
name: source.zip
path: artifacts/
windows:
runs-on: windows-latest
runs-on: windows
strategy:
matrix:
target: ["msvc"] # TODO: Add msys2
@ -43,8 +42,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
fetch-tags: true
fetch-depth: 0
- name: Set up vcpkg cache
uses: actions/cache@v4
@ -58,21 +56,24 @@ jobs:
${{ runner.os }}-${{ matrix.target }}-vcpkg-
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
uses: https://github.com/ilammy/msvc-dev-cmd@v1
if: ${{ matrix.target == 'msvc' }}
- name: Install extra tools
run: choco install ccache ninja wget cygwin
if: ${{ matrix.target == 'msvc' }}
- name: Install vulkan-SDK
run: ./.ci/install-vulkan-sdk.ps1
shell: pwsh
# - name: Install extra tools
# run: choco install ccache ninja wget cygwin
# if: ${{ matrix.target == 'msvc' }}
# - name: Install vulkan-SDK
# run: ./.ci/install-vulkan-sdk.ps1
# shell: powershell
- name: Cygwin with autoconf # NEEDED FOR LIBUSB
shell: cmd
run: |
C:\tools\cygwin\cygwinsetup.exe -q -P autoconf,automake,libtool,make,pkg-config
REM Create wrapper batch files for Cygwin tools in a directory that will be in PATH
mkdir C:\cygwin-wrappers
REM mkdir C:\cygwin-wrappers
REM Create autoconf.bat wrapper
echo @echo off > C:\cygwin-wrappers\autoconf.bat
@ -85,6 +86,7 @@ jobs:
REM Add the wrappers directory to PATH
echo C:\cygwin-wrappers>>"%GITHUB_PATH%"
echo C:\tools\cygwin\bin>>"%GITHUB_PATH%"
- name: CMake Configure
id: cmake
shell: cmd
@ -92,16 +94,18 @@ jobs:
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_TOOLCHAIN_FILE="%CD%\..\CMakeModules\MSVCCache.cmake" -DYUZU_USE_BUNDLED_QT=ON -DENABLE_QT_TRANSLATION=ON -DUSE_DISCORD_PRESENCE=ON -DYUZU_USE_BUNDLED_VCPKG=ON -DYUZU_USE_BUNDLED_SDL2=ON -DUSE_CCACHE=ON
- name: Build
id: build
shell: cmd
run: |
cd build
ninja yuzu yuzu-cmd yuzu-room tests -j4
ninja yuzu yuzu-cmd yuzu-room tests
ccache -s -v
- name: Package artifacts
if: steps.build.outcome == 'success'
shell: pwsh
shell: powershell
run: |
$GITDATE = $(git show -s --date=short --format='%ad') -replace "-", ""
$GITREV = $(git show -s --format='%h')
@ -138,6 +142,7 @@ jobs:
Copy-Item "LICENSE*" -Destination "$RELEASE_DIST" -ErrorAction SilentlyContinue
Copy-Item "README*" -Destination "$RELEASE_DIST" -ErrorAction SilentlyContinue
- name: Upload Windows artifacts
if: steps.build.outcome == 'success'
uses: forgejo/upload-artifact@v4
@ -160,17 +165,18 @@ jobs:
fetch-tags: true
- name: Build
run: ./.ci/linux.sh
- name: Package AppImages
run: |
./.ci/package-appimage.sh "${{ github.ref_name }}"
./.ci/linux.sh v3 4
- name: Package AppImage
run: |
./.ci/package-appimage.sh v3
- name: Upload Linux artifacts
uses: forgejo/upload-artifact@v4
with:
name: linux.zip
path: artifacts/*
path: ./*.AppImage
android:
runs-on: android
@ -186,8 +192,7 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
fetch-tags: true
fetch-depth: 0
- name: Set tag name
run: |

View file

@ -7,16 +7,16 @@ on:
jobs:
license-header:
runs-on: linux
container:
image: opensauce04/lime3ds-build:latest
options: -u 1001
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch master branch
run: git fetch origin master:master
- name: Make script executable
run: chmod +x ./.ci/license-header.rb
- name: Check license headers
run: ./.ci/license-header.rb