Skip to content

Commit

Permalink
Test multiple workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Dec 14, 2022
1 parent 92284b7 commit e729f77
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: appimage

on:
workflow_run:
workflows: ["development"]
types:
- completed

jobs:
build-appimage:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
# Use oldest ubuntu to make AppImage work
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- name: Install Qt
run: |
sudo apt-get update
sudo apt-get install -y qt5-default libqt5svg5-dev
- name: Build application
run: |
cd ${GITHUB_WORKSPACE}/application
qmake
make -j`nproc`
- name: Generate AppImage
run: |
sudo apt-get install -y libfuse2
cd ${GITHUB_WORKSPACE} && sh ./ci/appimage/bundle.sh
- name: Archive AppImage
uses: actions/upload-artifact@v3
with:
name: Dust3D-x86_64.AppImage
path: Dust3D-x86_64.AppImage
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploying
name: development

on:
push:
Expand Down Expand Up @@ -28,7 +28,6 @@ jobs:
exit 1
fi
build:
# Use oldest ubuntu to make AppImage work
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
Expand All @@ -40,13 +39,4 @@ jobs:
run: |
cd ${GITHUB_WORKSPACE}/application
qmake
make -j`nproc`
- name: Generate AppImage
run: |
sudo apt-get install -y libfuse2
cd ${GITHUB_WORKSPACE} && sh ./ci/appimage/bundle.sh
- name: Archive AppImage
uses: actions/upload-artifact@v3
with:
name: Dust3D-x86_64.AppImage
path: Dust3D-x86_64.AppImage
make -j`nproc`

0 comments on commit e729f77

Please sign in to comment.