-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github action to build the app-image
- Ran into some issues with running the appimage directly via github. - Runs correctly if it's contents are extracted and ran that way instead - Did some changes to the AppRun that seems to make it find the libraries better
- Loading branch information
1 parent
69d8e4d
commit ca65a10
Showing
4 changed files
with
82 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Build and Package AppImage | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- appimage | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
- appimage | ||
|
||
jobs: | ||
build-appimage: | ||
runs-on: ubuntu-22.04 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
# Checkout the repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Set up dependencies | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential cmake libgl1-mesa-dev libglu1-mesa-dev \ | ||
libsdl2-dev libsdl2-net-dev zlib1g-dev | ||
# Build Supermodel | ||
- name: Build Supermodel | ||
run: | | ||
cd ./AppImage | ||
./build_app_image.sh | ||
- name: Delete Existing latest Release | ||
run: | | ||
gh release delete latest -y || true | ||
gh api -X DELETE /repos/${{ github.repository }}/git/refs/tags/latest || true | ||
- name: Check AppImage File | ||
run: ls -lah ./AppImage/ | ||
|
||
# Create release as the "latest" tag | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
with: | ||
tag_name: latest | ||
release_name: "Supermodel Release latest" | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload AppImage | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
# upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./AppImage/Supermodel-x86_64.AppImage | ||
asset_name: Supermodel-x86_64.AppImage | ||
asset_content_type: application/octet-stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#!/bin/bash | ||
HERE="$(dirname "$(readlink -f "$0")")" | ||
#HERE="$(dirname "$(readlink -f "$0")")" | ||
SELF=$(readlink -f "$0") | ||
HERE=${SELF%/*} | ||
#export LD_LIBRARY_PATH="${HERE}/usr/lib/:${HERE}/usr/lib/i386-linux-gnu/:${HERE}/usr/lib/x86_64-linux-gnu/:${HERE}/usr/lib32/:${HERE}/usr/lib64/:${HERE}/lib/:${HERE}/lib/i386-linux-gnu/:${HERE}/lib/x86_64-linux-gnu/:${HERE}/lib32/:${HERE}/lib64/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" | ||
export PATH="${HERE}/usr/bin/:${HERE}/usr/sbin/:${HERE}/usr/games/:${HERE}/bin/:${HERE}/sbin/${PATH:+:$PATH}" | ||
export LD_LIBRARY_PATH="${HERE}/usr/lib/:${HERE}/usr/lib/i386-linux-gnu/:${HERE}/usr/lib/x86_64-linux-gnu/:${HERE}/usr/lib32/:${HERE}/usr/lib64/:${HERE}/lib/:${HERE}/lib/i386-linux-gnu/:${HERE}/lib/x86_64-linux-gnu/:${HERE}/lib32/:${HERE}/lib64/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" | ||
echo "Starting Supermodel" | ||
cd "$HERE/usr" | ||
exec "./bin/Supermodel" "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters