mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
Update build CI
This commit is contained in:
parent
4dcac338f9
commit
e4049f4b81
1 changed files with 211 additions and 215 deletions
54
.github/workflows/build.yml
vendored
54
.github/workflows/build.yml
vendored
|
@ -33,10 +33,10 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build-windows:
|
build-windows:
|
||||||
name: Build Windows
|
name: Build Windows
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
@ -64,7 +64,7 @@ jobs:
|
||||||
uses: geode-sdk/cli/.github/actions/setup@main
|
uses: geode-sdk/cli/.github/actions/setup@main
|
||||||
|
|
||||||
- name: Download xwin
|
- name: Download xwin
|
||||||
uses: robinraju/release-downloader@v1.10
|
uses: robinraju/release-downloader@v1
|
||||||
with:
|
with:
|
||||||
repository: Jake-Shadle/xwin
|
repository: Jake-Shadle/xwin
|
||||||
latest: true
|
latest: true
|
||||||
|
@ -79,8 +79,6 @@ jobs:
|
||||||
mv epic-xwin/xwin-*-x86_64-unknown-linux-musl/xwin ./xwin
|
mv epic-xwin/xwin-*-x86_64-unknown-linux-musl/xwin ./xwin
|
||||||
./xwin --arch x86_64 --sdk-version 10.0.22621 --accept-license list
|
./xwin --arch x86_64 --sdk-version 10.0.22621 --accept-license list
|
||||||
|
|
||||||
# this caches '.xwin-cache/**/*' but that's actually only gonna
|
|
||||||
# contain the manifest cuz we only ran `xwin list` so far
|
|
||||||
- name: Setup xwin Cache
|
- name: Setup xwin Cache
|
||||||
id: xwin-cache
|
id: xwin-cache
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
|
@ -111,18 +109,18 @@ jobs:
|
||||||
${{ env.base-build-command }}
|
${{ env.base-build-command }}
|
||||||
${{ steps.build-debug-info.outputs.extra-build }}
|
${{ steps.build-debug-info.outputs.extra-build }}
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-win
|
name: geode-win
|
||||||
path: ./bin/nightly
|
path: ./bin/nightly
|
||||||
|
|
||||||
- name: Package Installer
|
- name: Package installer
|
||||||
run: |
|
run: |
|
||||||
sudo apt install nsis
|
sudo apt install nsis
|
||||||
makensis -WX -V3 ./installer/windows/installer.nsi
|
makensis -WX -V3 ./installer/windows/installer.nsi
|
||||||
|
|
||||||
- name: Upload Installer
|
- name: Upload installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-installer-win
|
name: geode-installer-win
|
||||||
|
@ -142,7 +140,7 @@ jobs:
|
||||||
SCCACHE_CACHE_MULTIARCH: 1
|
SCCACHE_CACHE_MULTIARCH: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
@ -154,8 +152,7 @@ jobs:
|
||||||
has-sccache: ${{ inputs.use-ccache }}
|
has-sccache: ${{ inputs.use-ccache }}
|
||||||
if: inputs.build-debug-info
|
if: inputs.build-debug-info
|
||||||
|
|
||||||
# due to very strange performance issues, sccache is currently disabled for macos. sorry
|
# macOS does not currently support sccache due to performance issues
|
||||||
|
|
||||||
# - name: Setup caches
|
# - name: Setup caches
|
||||||
# uses: ./.github/actions/setup-cache
|
# uses: ./.github/actions/setup-cache
|
||||||
# with:
|
# with:
|
||||||
|
@ -186,16 +183,16 @@ jobs:
|
||||||
${{ env.base-build-command }}
|
${{ env.base-build-command }}
|
||||||
${{ steps.build-debug-info.outputs.extra-build }}
|
${{ steps.build-debug-info.outputs.extra-build }}
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-mac
|
name: geode-mac
|
||||||
path: ./bin/nightly
|
path: ./bin/nightly
|
||||||
|
|
||||||
- name: Package Installer
|
- name: Package installer
|
||||||
run: ./installer/mac/package.sh ./bin/nightly ./installer/mac/geode-installer-mac.pkg
|
run: ./installer/mac/package.sh ./bin/nightly ./installer/mac/geode-installer-mac.pkg
|
||||||
|
|
||||||
- name: Upload Installer
|
- name: Upload installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-installer-mac
|
name: geode-installer-mac
|
||||||
|
@ -215,7 +212,6 @@ jobs:
|
||||||
- name: Android (32-bit)
|
- name: Android (32-bit)
|
||||||
id: android32
|
id: android32
|
||||||
extra-configure: -DANDROID_ABI=armeabi-v7a
|
extra-configure: -DANDROID_ABI=armeabi-v7a
|
||||||
|
|
||||||
- name: Android (64-bit)
|
- name: Android (64-bit)
|
||||||
id: android64
|
id: android64
|
||||||
extra-configure: -DANDROID_ABI=arm64-v8a
|
extra-configure: -DANDROID_ABI=arm64-v8a
|
||||||
|
@ -224,7 +220,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
@ -277,13 +273,12 @@ jobs:
|
||||||
${{ env.base-build-command }}
|
${{ env.base-build-command }}
|
||||||
${{ steps.build-debug-info.outputs.extra-build }}
|
${{ steps.build-debug-info.outputs.extra-build }}
|
||||||
|
|
||||||
# hardcoding toolchain path :(
|
- name: Dump symbols
|
||||||
- name: Dump Symbols
|
|
||||||
run: |
|
run: |
|
||||||
${{ steps.breakpad-tools.outputs.binary-path }} ./bin/nightly/Geode.${{ matrix.config.id }}.so -o ./bin/nightly/Geode.${{ matrix.config.id }}.so.sym
|
${{ steps.breakpad-tools.outputs.binary-path }} ./bin/nightly/Geode.${{ matrix.config.id }}.so -o ./bin/nightly/Geode.${{ matrix.config.id }}.so.sym
|
||||||
$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip ./bin/nightly/Geode.${{ matrix.config.id }}.so
|
$ANDROID_NDK_LATEST_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip ./bin/nightly/Geode.${{ matrix.config.id }}.so
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: geode-${{ matrix.config.id }}
|
name: geode-${{ matrix.config.id }}
|
||||||
|
@ -300,55 +295,56 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ build-windows, build-mac, build-android ]
|
needs: [ build-windows, build-mac, build-android ]
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Declare Version Variables
|
- name: Declare version variables
|
||||||
id: ref
|
id: ref
|
||||||
run: |
|
run: |
|
||||||
echo "version=$(cat VERSION | xargs)" >> $GITHUB_OUTPUT
|
echo "version=$(cat VERSION | xargs)" >> $GITHUB_OUTPUT
|
||||||
echo "hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
|
echo "hash=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Download Artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
|
||||||
- name: Move Installers
|
- name: Move installers
|
||||||
run: |
|
run: |
|
||||||
mv geode-installer-mac/geode-installer-mac.pkg geode-installer-${{ steps.ref.outputs.hash }}-mac.pkg
|
mv geode-installer-mac/geode-installer-mac.pkg geode-installer-${{ steps.ref.outputs.hash }}-mac.pkg
|
||||||
mv geode-installer-win/geode-installer-win.exe geode-installer-${{ steps.ref.outputs.hash }}-win.exe
|
mv geode-installer-win/geode-installer-win.exe geode-installer-${{ steps.ref.outputs.hash }}-win.exe
|
||||||
|
|
||||||
- name: Zip MacOS Artifacts
|
- name: Zip MacOS artifacts
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: geode-mac/Geode.dylib geode-mac/GeodeBootstrapper.dylib
|
files: geode-mac/Geode.dylib geode-mac/GeodeBootstrapper.dylib
|
||||||
dest: geode-${{ steps.ref.outputs.hash }}-mac.zip
|
dest: geode-${{ steps.ref.outputs.hash }}-mac.zip
|
||||||
|
|
||||||
- name: Zip Windows Artifacts
|
- name: Zip Windows artifacts
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: geode-win/XInput1_4.dll geode-win/Geode.dll geode-win/GeodeUpdater.exe geode-win/Geode.lib geode-win/Geode.pdb
|
files: geode-win/XInput1_4.dll geode-win/Geode.dll geode-win/GeodeUpdater.exe geode-win/Geode.lib geode-win/Geode.pdb
|
||||||
dest: geode-${{ steps.ref.outputs.hash }}-win.zip
|
dest: geode-${{ steps.ref.outputs.hash }}-win.zip
|
||||||
|
|
||||||
- name: Zip Android32 Artifacts
|
- name: Zip Android32 artifacts
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: geode-android32/Geode.android32.so geode-android32/Geode.android32.so.sym
|
files: geode-android32/Geode.android32.so geode-android32/Geode.android32.so.sym
|
||||||
dest: geode-${{ steps.ref.outputs.hash }}-android32.zip
|
dest: geode-${{ steps.ref.outputs.hash }}-android32.zip
|
||||||
|
|
||||||
- name: Zip Android64 Artifacts
|
- name: Zip Android64 artifacts
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: geode-android64/Geode.android64.so geode-android64/Geode.android64.so.sym
|
files: geode-android64/Geode.android64.so geode-android64/Geode.android64.so.sym
|
||||||
dest: geode-${{ steps.ref.outputs.hash }}-android64.zip
|
dest: geode-${{ steps.ref.outputs.hash }}-android64.zip
|
||||||
|
|
||||||
- name: Zip Resources
|
- name: Zip resources
|
||||||
uses: vimtor/action-zip@v1.2
|
uses: vimtor/action-zip@v1.2
|
||||||
with:
|
with:
|
||||||
files: geode-android64/resources
|
files: geode-android64/resources
|
||||||
dest: resources.zip
|
dest: resources.zip
|
||||||
|
|
||||||
- name: Update Development Release
|
- name: Update development release
|
||||||
uses: andelf/nightly-release@main
|
uses: andelf/nightly-release@main
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue