snap github action

This commit is contained in:
alemuntoni 2020-05-26 16:44:43 +02:00
parent 086d64e099
commit ee10baf8a2

View File

@ -50,6 +50,26 @@ jobs:
name: meshlab_linux_appimage
path: MeshLab${{steps.envs.outputs.date}}-linux.AppImage
ubuntu_build_snap:
name: Build MeshLab (Ubuntu - CMake)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Setup env variables
id: envs
run: |
echo ::set-output name=date::"$(cat ML_VERSION)"
- name: Build MeshLab Snap
run: |
cd install/linux/
snapcraft
ubuntu_build_cmake:
name: Build MeshLab (Ubuntu - CMake)
@ -63,7 +83,7 @@ jobs:
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Instal dependencies
- name: Install dependencies
run: |
sh install/linux/linux_setup_env_ubuntu.sh
sudo apt-get install cmake ninja-build