Skip to content

Commit

Permalink
Update linux-build.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tilsgee authored Jun 29, 2024
1 parent 7702023 commit 37782b4
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/linux-build.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
name: CMake on a single platform

on:
Expand All @@ -20,30 +18,28 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y cmake git ninja-build
- name: Clone Blender repository
run: git clone https://github.com/blender/blender.git
working-directory: ~/blender
working-directory: $GITHUB_WORKSPACE/blender

- name: Configure CMake
run: cmake -B ~/blender/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_SYSTEM_NAME=Linux -G "Ninja"
run: cmake -B $GITHUB_WORKSPACE/blender/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_SYSTEM_NAME=Linux -G "Ninja"

- name: Build
run: cmake --build ~/blender/build --config ${{env.BUILD_TYPE}}
run: cmake --build $GITHUB_WORKSPACE/blender/build --config ${{env.BUILD_TYPE}}

- name: Create AppImage
run: |
sudo apt install -y appimagetool
appimagetool ~/blender/build/blender ~/blender/blender.appimage
appimagetool $GITHUB_WORKSPACE/blender/build/blender $GITHUB_WORKSPACE/blender/blender.appimage
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: blender-appimage
path: ~/blender/blender.appimage
path: $GITHUB_WORKSPACE/blender/blender.appimage

0 comments on commit 37782b4

Please sign in to comment.