actions?
Signed-off-by: swurl <swurl@swurl.xyz>
This commit is contained in:
parent
50ac5e935a
commit
701186c995
1 changed files with 24 additions and 27 deletions
51
.github/workflows/build.yml
vendored
51
.github/workflows/build.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
source:
|
source:
|
||||||
if: ${{ !github.head_ref }}
|
if: ${{ !github.head_ref }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -71,18 +71,18 @@ jobs:
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
C:\tools\cygwin\cygwinsetup.exe -q -P autoconf,automake,libtool,make,pkg-config
|
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
|
REM Create wrapper batch files for Cygwin tools in a directory that will be in PATH
|
||||||
mkdir C:\cygwin-wrappers
|
mkdir C:\cygwin-wrappers
|
||||||
|
|
||||||
REM Create autoconf.bat wrapper
|
REM Create autoconf.bat wrapper
|
||||||
echo @echo off > C:\cygwin-wrappers\autoconf.bat
|
echo @echo off > C:\cygwin-wrappers\autoconf.bat
|
||||||
echo C:\tools\cygwin\bin\bash.exe -l -c "autoconf %%*" >> C:\cygwin-wrappers\autoconf.bat
|
echo C:\tools\cygwin\bin\bash.exe -l -c "autoconf %%*" >> C:\cygwin-wrappers\autoconf.bat
|
||||||
|
|
||||||
REM Add other wrappers if needed for other Cygwin tools
|
REM Add other wrappers if needed for other Cygwin tools
|
||||||
echo @echo off > C:\cygwin-wrappers\automake.bat
|
echo @echo off > C:\cygwin-wrappers\automake.bat
|
||||||
echo C:\tools\cygwin\bin\bash.exe -l -c "automake %%*" >> C:\cygwin-wrappers\automake.bat
|
echo C:\tools\cygwin\bin\bash.exe -l -c "automake %%*" >> C:\cygwin-wrappers\automake.bat
|
||||||
|
|
||||||
REM Add the wrappers directory to PATH
|
REM Add the wrappers directory to PATH
|
||||||
echo C:\cygwin-wrappers>>"%GITHUB_PATH%"
|
echo C:\cygwin-wrappers>>"%GITHUB_PATH%"
|
||||||
echo C:\tools\cygwin\bin>>"%GITHUB_PATH%"
|
echo C:\tools\cygwin\bin>>"%GITHUB_PATH%"
|
||||||
|
@ -99,7 +99,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
ninja yuzu yuzu-cmd yuzu-room tests
|
ninja yuzu yuzu-cmd yuzu-room tests
|
||||||
ccache -s -v
|
ccache -s -v
|
||||||
- name: Package artifacts
|
- name: Package artifacts
|
||||||
if: steps.build.outcome == 'success'
|
if: steps.build.outcome == 'success'
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
@ -108,35 +108,35 @@ jobs:
|
||||||
$GITREV = $(git show -s --format='%h')
|
$GITREV = $(git show -s --format='%h')
|
||||||
$RELEASE_DIST = "eden-windows-msvc"
|
$RELEASE_DIST = "eden-windows-msvc"
|
||||||
$ARTIFACTS_DIR = "${{ github.workspace }}/artifacts"
|
$ARTIFACTS_DIR = "${{ github.workspace }}/artifacts"
|
||||||
|
|
||||||
mkdir -p $ARTIFACTS_DIR
|
mkdir -p $ARTIFACTS_DIR
|
||||||
mkdir -p $RELEASE_DIST
|
mkdir -p $RELEASE_DIST
|
||||||
mkdir -p pdb
|
mkdir -p pdb
|
||||||
|
|
||||||
Copy-Item "build/bin/Release/*" -Destination "$RELEASE_DIST" -Recurse -ErrorAction SilentlyContinue
|
Copy-Item "build/bin/Release/*" -Destination "$RELEASE_DIST" -Recurse -ErrorAction SilentlyContinue
|
||||||
if (-not $?) {
|
if (-not $?) {
|
||||||
# Try without Release subfolder if that doesn't exist
|
# Try without Release subfolder if that doesn't exist
|
||||||
Copy-Item "build/bin/*" -Destination "$RELEASE_DIST" -Recurse -ErrorAction SilentlyContinue
|
Copy-Item "build/bin/*" -Destination "$RELEASE_DIST" -Recurse -ErrorAction SilentlyContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
Get-ChildItem "build/bin/" -Recurse -Filter "*.pdb" | Copy-Item -destination .\pdb -ErrorAction SilentlyContinue
|
Get-ChildItem "build/bin/" -Recurse -Filter "*.pdb" | Copy-Item -destination .\pdb -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
$BUILD_ZIP = "eden-windows-msvc-$GITDATE-$GITREV.zip"
|
$BUILD_ZIP = "eden-windows-msvc-$GITDATE-$GITREV.zip"
|
||||||
$BUILD_PDB = "eden-windows-msvc-$GITDATE-$GITREV-debugsymbols.zip"
|
$BUILD_PDB = "eden-windows-msvc-$GITDATE-$GITREV-debugsymbols.zip"
|
||||||
$BUILD_7Z = "eden-windows-msvc-$GITDATE-$GITREV.7z"
|
$BUILD_7Z = "eden-windows-msvc-$GITDATE-$GITREV.7z"
|
||||||
|
|
||||||
7z a -tzip $BUILD_ZIP $RELEASE_DIST\*
|
7z a -tzip $BUILD_ZIP $RELEASE_DIST\*
|
||||||
|
|
||||||
if (Test-Path -Path ".\pdb\*.pdb") {
|
if (Test-Path -Path ".\pdb\*.pdb") {
|
||||||
7z a -tzip $BUILD_PDB .\pdb\*.pdb
|
7z a -tzip $BUILD_PDB .\pdb\*.pdb
|
||||||
Move-Item $BUILD_PDB $ARTIFACTS_DIR/ -ErrorAction SilentlyContinue
|
Move-Item $BUILD_PDB $ARTIFACTS_DIR/ -ErrorAction SilentlyContinue
|
||||||
}
|
}
|
||||||
|
|
||||||
7z a $BUILD_7Z $RELEASE_DIST
|
7z a $BUILD_7Z $RELEASE_DIST
|
||||||
|
|
||||||
Move-Item $BUILD_ZIP $ARTIFACTS_DIR/ -ErrorAction SilentlyContinue
|
Move-Item $BUILD_ZIP $ARTIFACTS_DIR/ -ErrorAction SilentlyContinue
|
||||||
Move-Item $BUILD_7Z $ARTIFACTS_DIR/ -ErrorAction SilentlyContinue
|
Move-Item $BUILD_7Z $ARTIFACTS_DIR/ -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
Copy-Item "LICENSE*" -Destination "$RELEASE_DIST" -ErrorAction SilentlyContinue
|
Copy-Item "LICENSE*" -Destination "$RELEASE_DIST" -ErrorAction SilentlyContinue
|
||||||
Copy-Item "README*" -Destination "$RELEASE_DIST" -ErrorAction SilentlyContinue
|
Copy-Item "README*" -Destination "$RELEASE_DIST" -ErrorAction SilentlyContinue
|
||||||
- name: Upload Windows artifacts
|
- name: Upload Windows artifacts
|
||||||
|
@ -146,16 +146,13 @@ jobs:
|
||||||
name: ${{ matrix.target }}
|
name: ${{ matrix.target }}
|
||||||
path: artifacts/*
|
path: artifacts/*
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
env:
|
env:
|
||||||
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
||||||
CCACHE_COMPILERCHECK: content
|
CCACHE_COMPILERCHECK: content
|
||||||
CCACHE_SLOPPINESS: time_macros
|
CCACHE_SLOPPINESS: time_macros
|
||||||
OS: linux
|
OS: linux
|
||||||
TARGET: fresh
|
TARGET: fresh
|
||||||
container:
|
|
||||||
image: icybriar/eden-build-environment:latest
|
|
||||||
options: -u 1001
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -182,11 +179,11 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./.ci/linux.sh
|
run: ./.ci/linux.sh
|
||||||
|
|
||||||
- name: Package AppImages
|
- name: Package AppImages
|
||||||
run: |
|
run: |
|
||||||
./.ci/package-appimage.sh "${{ github.ref_name }}"
|
./.ci/package-appimage.sh "${{ github.ref_name }}"
|
||||||
|
|
||||||
- name: Upload Linux artifacts
|
- name: Upload Linux artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -237,20 +234,20 @@ jobs:
|
||||||
GITREV="$(git show -s --format='%h')"
|
GITREV="$(git show -s --format='%h')"
|
||||||
ARTIFACTS_DIR="$PWD/artifacts"
|
ARTIFACTS_DIR="$PWD/artifacts"
|
||||||
mkdir -p "${ARTIFACTS_DIR}/"
|
mkdir -p "${ARTIFACTS_DIR}/"
|
||||||
|
|
||||||
REV_NAME="eden-android-${GITDATE}-${GITREV}"
|
REV_NAME="eden-android-${GITDATE}-${GITREV}"
|
||||||
BUILD_FLAVOR="mainline"
|
BUILD_FLAVOR="mainline"
|
||||||
BUILD_TYPE_LOWER="release"
|
BUILD_TYPE_LOWER="release"
|
||||||
BUILD_TYPE_UPPER="Release"
|
BUILD_TYPE_UPPER="Release"
|
||||||
|
|
||||||
cp src/android/app/build/outputs/apk/"${BUILD_FLAVOR}/${BUILD_TYPE_LOWER}/app-${BUILD_FLAVOR}-${BUILD_TYPE_LOWER}.apk" \
|
cp src/android/app/build/outputs/apk/"${BUILD_FLAVOR}/${BUILD_TYPE_LOWER}/app-${BUILD_FLAVOR}-${BUILD_TYPE_LOWER}.apk" \
|
||||||
"${ARTIFACTS_DIR}/${REV_NAME}.apk" || echo "APK not found"
|
"${ARTIFACTS_DIR}/${REV_NAME}.apk" || echo "APK not found"
|
||||||
|
|
||||||
cp src/android/app/build/outputs/bundle/"${BUILD_FLAVOR}${BUILD_TYPE_UPPER}"/"app-${BUILD_FLAVOR}-${BUILD_TYPE_LOWER}.aab" \
|
cp src/android/app/build/outputs/bundle/"${BUILD_FLAVOR}${BUILD_TYPE_UPPER}"/"app-${BUILD_FLAVOR}-${BUILD_TYPE_LOWER}.aab" \
|
||||||
"${ARTIFACTS_DIR}/${REV_NAME}.aab" || echo "AAB not found"
|
"${ARTIFACTS_DIR}/${REV_NAME}.aab" || echo "AAB not found"
|
||||||
|
|
||||||
ls -la "${ARTIFACTS_DIR}/"
|
ls -la "${ARTIFACTS_DIR}/"
|
||||||
|
|
||||||
- name: Upload Android artifacts
|
- name: Upload Android artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue