Skip to content

Commit

Permalink
Add GitHub Action Workflow to Build AppImage
Browse files Browse the repository at this point in the history
  • Loading branch information
fang64 authored and lanewei120 committed Feb 1, 2023
1 parent 472da36 commit fe5629f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build Linux

on: [push, pull_request]

jobs:
appimage-builder:
name: Linux AppImage Build

runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install cmake libgl1-mesa-dev libgtk-3-dev libxkbcommon-dev libunwind-dev libfuse2 -y
- name: Install dependencies from BuildLinux.sh
shell: bash
run: sudo ./BuildLinux.sh -ur
- name: Fix permissions
shell: bash
run: sudo chown $USER -R ./
- name: Build deps
id: cache_deps
uses: actions/cache@v3
env:
cache-name: ${{ runner.os }}-cache-bambustudio_deps_x64
with:
path: ${{ github.workspace }}/deps/build/destdir
key: build-${{ env.cache-name }}

- if: ${{ steps.cache_deps.outputs.cache-hit != 'true' }}
name: Build deps
working-directory: ${{ github.workspace }}
continue-on-error: true
run: ./BuildLinux.sh -dsr

- name: Build Studio
shell: bash
run: ./BuildLinux.sh -ir
- uses: actions/upload-artifact@v3
with:
name: BambuStudio_Linux
path: './build/BambuStudio_ubu64.AppImage'

0 comments on commit fe5629f

Please sign in to comment.