mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
fix windows build lua dependency.
Add attempted Solus Build.
This commit is contained in:
59
.github/workflows/solus-eopkg-build.yml
vendored
Normal file
59
.github/workflows/solus-eopkg-build.yml
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
name: Solus eopkg build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
package_yml:
|
||||
description: "Path to Solus package.yml for ypkg build"
|
||||
required: false
|
||||
default: "packaging/solus/package.yml"
|
||||
solus_image:
|
||||
description: "Solus container image"
|
||||
required: false
|
||||
default: "ghcr.io/getsolus/solus:latest"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-eopkg:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SOLUS_IMAGE: ${{ inputs.solus_image || 'ghcr.io/getsolus/solus:latest' }}
|
||||
PACKAGE_YML: ${{ inputs.package_yml || 'packaging/solus/package.yml' }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build eopkg package in Solus container
|
||||
run: |
|
||||
if [ ! -f "$PACKAGE_YML" ]; then
|
||||
echo "Expected Solus packaging file at $PACKAGE_YML" >&2
|
||||
echo "Available package.yml files:" >&2
|
||||
find . -name "package.yml" -print >&2 || true
|
||||
echo "Add a package.yml (ypkg) file or update the workflow input PACKAGE_YML." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker pull "$SOLUS_IMAGE"
|
||||
|
||||
docker run --rm \
|
||||
-v "$PWD":/workspace \
|
||||
-w /workspace \
|
||||
"$SOLUS_IMAGE" \
|
||||
sh -lc '
|
||||
set -euo pipefail
|
||||
eopkg update-repo -y
|
||||
eopkg install -y ypkg git
|
||||
ypkg build "$PACKAGE_YML"
|
||||
mkdir -p /workspace/artifacts
|
||||
find . -maxdepth 3 -name "*.eopkg" -type f -exec cp -v {} /workspace/artifacts/ \;
|
||||
'
|
||||
|
||||
- name: Upload eopkg artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: solus-eopkg
|
||||
path: artifacts/*.eopkg
|
||||
if-no-files-found: error
|
||||
13
.github/workflows/windows-build.yml
vendored
13
.github/workflows/windows-build.yml
vendored
@@ -104,8 +104,13 @@ jobs:
|
||||
throw "Lua extraction failed; missing $luaExtractRoot."
|
||||
}
|
||||
|
||||
$luaMakefile = Get-ChildItem -Path $luaExtractRoot -Filter "Makefile.msc" -Recurse -File | Select-Object -First 1
|
||||
if (-not $luaMakefile) {
|
||||
throw "Lua Makefile.msc not found under $luaExtractRoot."
|
||||
}
|
||||
$luaBuildRoot = $luaMakefile.Directory.FullName
|
||||
$luaBuildArch = if ($gvsPlatform -eq "x86") { "x86" } else { "amd64" }
|
||||
cmd /c "call `"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat`" -arch=$luaBuildArch && cd /d `"$luaExtractRoot\src`" && nmake -f Makefile.msc"
|
||||
cmd /c "call `"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat`" -arch=$luaBuildArch && pushd `"$luaBuildRoot`" && nmake -f Makefile.msc && popd"
|
||||
|
||||
$luaDepsRoot = "C:\gtk-build\gtk\$gvsPlatform\release"
|
||||
$luaIncludeDir = Join-Path $luaDepsRoot "include\lua54"
|
||||
@@ -114,9 +119,9 @@ jobs:
|
||||
New-Item -Path $luaIncludeDir -ItemType Directory -Force | Out-Null
|
||||
New-Item -Path $luaLibDir -ItemType Directory -Force | Out-Null
|
||||
New-Item -Path $luaBinDir -ItemType Directory -Force | Out-Null
|
||||
Copy-Item "$luaExtractRoot\src\*.h" $luaIncludeDir -Force
|
||||
Copy-Item "$luaExtractRoot\src\lua54.lib" $luaLibDir -Force
|
||||
Copy-Item "$luaExtractRoot\src\lua54.dll" $luaBinDir -Force
|
||||
Copy-Item "$luaBuildRoot\*.h" $luaIncludeDir -Force
|
||||
Copy-Item "$luaBuildRoot\lua54.lib" $luaLibDir -Force
|
||||
Copy-Item "$luaBuildRoot\lua54.dll" $luaBinDir -Force
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user