Skip to content

Commit

Permalink
v2.7.3-luajit: Removed CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 committed Jan 27, 2023
1 parent 7d712f6 commit 2138946
Showing 1 changed file with 0 additions and 63 deletions.
63 changes: 0 additions & 63 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,66 +192,3 @@ jobs:
path: |
CraftOS-PC.pdb
CraftOS-PC_console.pdb
test-appimage:
name: Build Linux AppImage
runs-on: ubuntu-20.04
environment: production
steps:
- uses: actions/checkout@v1
- name: Download ROM
run: sudo git clone https://github.com/MCJack123/craftos2-rom /usr/local/share/craftos
- name: Install dependencies
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
run: |
sudo apt update
sudo apt install -y libsdl2-dev libsdl2-mixer-dev libhpdf-dev libpng++-dev libwebp-dev libpoco-dev libncurses5-dev patchelf
sudo curl -sLo /usr/bin/appimagetool https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage
sudo chmod a+x /usr/bin/appimagetool
echo "$GPG_SIGNING_KEY" > signing.asc
gpg --import signing.asc
rm signing.asc
- name: Build Lua
run: |
git submodule update --init --recursive
#if [[ ! $GITHUB_REF =~ luajit ]]; then make -C craftos2-lua linux -j$(grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}'); fi
- name: Build CraftOS-PC
run: |
./configure
make PREFIX=././ -j$(grep ^cpu\\scores /proc/cpuinfo | uniq | awk '{print $4}')
#if [[ ! $GITHUB_REF =~ luajit ]]; then patchelf --replace-needed craftos2-lua/src/liblua.so libcraftos2-lua.so craftos; fi
strip craftos
- name: Build AppImage
run: |
mkdir icons
unzip resources/linux-icons.zip -d icons
mkdir AppDir
curl -sLo AppDir/AppRun https://github.com/AppImage/AppImageKit/releases/download/13/AppRun-x86_64
chmod a+x AppDir/AppRun
#if [[ $GITHUB_REF =~ luajit ]]; then
install -D -m 0644 icons/CraftOS-PC.desktop AppDir/cc.craftos-pc.CraftOS-PC-Accelerated.desktop
install -D -m 0644 icons/CraftOS-PC.desktop AppDir/usr/share/applications/CraftOS-PC-Accelerated.desktop
install -D -m 0644 icons/1024.png AppDir/craftos-luajit.png
install -D -m 0755 craftos AppDir/usr/bin/craftos-luajit
install -D -m 0755 craftos2-luajit/src/libluajit.so AppDir/usr/lib/libluajit.so
install -D -m 0644 resources/appdata.xml AppDir/usr/share/metainfo/cc.craftos-pc.CraftOS-PC-Accelerated.appdata.xml
#else
# install -D -m 0644 icons/CraftOS-PC.desktop AppDir/cc.craftos-pc.CraftOS-PC.desktop
# install -D -m 0644 icons/CraftOS-PC.desktop AppDir/usr/share/applications/CraftOS-PC.desktop
# install -D -m 0644 icons/1024.png AppDir/craftos.png
# install -D -m 0755 craftos AppDir/usr/bin/craftos
# install -D -m 0755 craftos2-lua/src/liblua.so AppDir/usr/lib/libcraftos2-lua.so
# install -D -m 0644 resources/appdata.xml AppDir/usr/share/metainfo/cc.craftos-pc.CraftOS-PC.appdata.xml
#fi
mkdir -p AppDir/usr/share/craftos
cp -Rp /usr/local/share/craftos/rom /usr/local/share/craftos/debug /usr/local/share/craftos/bios.lua /usr/local/share/craftos/hdfont.bmp AppDir/usr/share/craftos/
# this gets all libraries required recursively (?)
ldd ./craftos | grep -o '/lib/[^ ]*\.so[^ :]*' | grep -Ev 'libstdc\+\+|libm\.|libgcc|libc\.|libX|libx|libpulse|libdbus|libsystemd|libreadline|libpthread|libdl|librt|libbsd|libnsl|libresolv' | sort | uniq | tee /dev/stderr | xargs -I {} cp -Lp {} AppDir/usr/lib
cp -Lp /lib/x86_64-linux-gnu/libX11.so.6 AppDir/usr/lib
appimagetool -s AppDir CraftOS-PC.x86_64.AppImage
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: CraftOS-PC.x86_64.AppImage
path: CraftOS-PC.x86_64.AppImage

0 comments on commit 2138946

Please sign in to comment.