dust3d/.github/workflows/DEPLOYING.yml

51 lines
1.3 KiB
YAML
Raw Normal View History

2022-12-12 08:27:18 +00:00
name: Deploying
2022-12-12 09:51:37 +00:00
on:
push:
branches:
- master
2022-12-13 11:37:18 +00:00
- pipeline
2022-12-12 09:51:37 +00:00
tags:
- '*'
pull_request:
branches:
- '*'
2022-12-12 08:27:18 +00:00
jobs:
clang-format-check:
runs-on: ubuntu-latest
steps:
2022-12-12 09:05:01 +00:00
- uses: actions/checkout@v3
2022-12-12 08:27:18 +00:00
- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get install -y clang-format
- name: Run clang-format
run: cd ${GITHUB_WORKSPACE}/ci && sh ./lint.sh && cd ${GITHUB_WORKSPACE}
- name: Check for changes
run: |
2022-12-12 08:58:53 +00:00
if ! git diff --ignore-space-at-eol --exit-code; then
2022-12-12 08:27:18 +00:00
exit 1
2022-12-12 09:05:01 +00:00
fi
build:
2022-12-13 11:37:18 +00:00
# Use oldest ubuntu to make AppImage work
runs-on: ubuntu-18.04
2022-12-12 09:05:01 +00:00
steps:
- uses: actions/checkout@v3
- name: Install Qt
run: |
sudo apt-get update
2022-12-13 11:37:18 +00:00
sudo apt-get install -y qt5-default libqt5svg5-dev
2022-12-12 09:05:01 +00:00
- name: Build application
run: |
cd ${GITHUB_WORKSPACE}/application
qmake
2022-12-13 11:37:18 +00:00
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:
path: Dust3D-x86_64.AppImage