fix6 #7
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
name: Run AppImage | |
on: [push] # 触发条件,这里设置为每次push到仓库时执行 | |
jobs: | |
build: | |
runs-on: ubuntu-latest # 运行在最新的Ubuntu Linux环境中 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 # 检出仓库代码 | |
- name: Install GUI Dependency | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y \ | |
libgl1-mesa-glx \ | |
libglu1-mesa \ | |
libx11-6 \ | |
libxext6 \ | |
libxrender1 \ | |
libxi6 \ | |
libxtst6 \ | |
libxt6 \ | |
libxfixes3 \ | |
libxrandr2 \ | |
libasound2 \ | |
libpango1.0-0 \ | |
libatk1.0-0 \ | |
libgtk-3-0 \ | |
libgstreamer1.0-0 \ | |
gstreamer1.0-plugins-base \ | |
gstreamer1.0-plugins-good \ | |
gstreamer1.0-plugins-bad \ | |
gstreamer1.0-plugins-ugly \ | |
libfuse-dev \ | |
libegl1 \ | |
libwebkit2gtk-4.0-37 | |
- name: Set DISPLAY | |
run: | | |
export DISPLAY=:0 | |
echo $DISPLAY | |
- name: Download AppImage | |
run: | | |
wget https://github.com/Snapmaker/OrcaSlicer/releases/download/nightlybuild/Snapmaker_Orca_Engine_Linux_V0.0.1.AppImage -O appimage.AppImage # 下载AppImage | |
chmod 777 appimage.AppImage # 给AppImage执行权限 | |
- name: Copy Config | |
run: | | |
mkdir -p ~/.config/Snapmaker_Orca | |
cp Snapmaker_Orca.conf ~/.config/Snapmaker_Orca/Snapmaker_Orca.conf | |
cp Snapmaker_Orca.conf.bak ~/.config/Snapmaker_Orca/Snapmaker_Orca.conf.bak | |
- name: Run AppImage | |
run: | | |
./appimage.AppImage /home/runner/work/Snapmaker_Engine/Snapmaker_Engine/3DBenchy.3mf |