Skip to content

Commit

Permalink
try composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Aug 26, 2020
1 parent 59e1a52 commit fb3c359
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 42 deletions.
43 changes: 1 addition & 42 deletions .github/workflows/BuildUbuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,48 +9,7 @@ jobs:
runs-on: ubuntu-16.04 #in order to deploy, need to use oldest supported version

steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
modules: xmlpatterns
- name: Install dependencies
run: |
sudo apt-get install -y mesa-common-dev libglu1-mesa-dev libglew-dev libeigen3-dev libgmp-dev
sudo apt-get install -y libxkbcommon-x11-0 patchelf
- name: Setup env variables
id: envs
run: |
echo ::set-output name=date::"$(cat ML_VERSION)"
- name: Build MeshLab
run: |
sh install/linux/linux_build.sh
- name: Make MeshLab Boundle
run: |
sh install/linux/linux_make_boundle.sh
- name: Deploy MeshLab and MeshLabServer
run : |
sh install/linux/linux_deploy.sh
- name: Build MeshLab and MeshLabServer AppImages
run : |
sh install/linux/linux_appimages.sh
- name: Upload Meshlab Portable
uses: actions/upload-artifact@v1
with:
name: meshlab_linux_portable
path: distrib/
- name: Upload MeshlabServer AppImage
uses: actions/upload-artifact@v1
with:
name: meshlabserver_linux_appimage
path: MeshLabServer${{steps.envs.outputs.date}}-linux.AppImage
- name: Upload Meshlab AppImage
uses: actions/upload-artifact@v1
with:
name: meshlab_linux_appimage
path: MeshLab${{steps.envs.outputs.date}}-linux.AppImage
- uses: scripts/build_ubuntu@v1

ubuntu_build_snap:
name: Build MeshLab (Ubuntu - Snap)
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/scripts/build_ubuntu/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
runs:
using: "composite"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
modules: xmlpatterns
- name: Install dependencies
run: |
sudo apt-get install -y mesa-common-dev libglu1-mesa-dev libglew-dev libeigen3-dev libgmp-dev
sudo apt-get install -y libxkbcommon-x11-0 patchelf
- name: Setup env variables
id: envs
run: |
echo ::set-output name=date::"$(cat ML_VERSION)"
- name: Build MeshLab
run: |
sh install/linux/linux_build.sh
- name: Make MeshLab Boundle
run: |
sh install/linux/linux_make_boundle.sh
- name: Deploy MeshLab and MeshLabServer
run : |
sh install/linux/linux_deploy.sh
- name: Build MeshLab and MeshLabServer AppImages
run : |
sh install/linux/linux_appimages.sh
- name: Upload Meshlab Portable
uses: actions/upload-artifact@v1
with:
name: meshlab_linux_portable
path: distrib/
- name: Upload MeshlabServer AppImage
uses: actions/upload-artifact@v1
with:
name: meshlabserver_linux_appimage
path: MeshLabServer${{steps.envs.outputs.date}}-linux.AppImage
- name: Upload Meshlab AppImage
uses: actions/upload-artifact@v1
with:
name: meshlab_linux_appimage
path: MeshLab${{steps.envs.outputs.date}}-linux.AppImage

0 comments on commit fb3c359

Please sign in to comment.