2019-12-30 17:37:59 -08:00
|
|
|
name: Ubuntu 14.04 / Qt 5.12 for AppImage
|
2019-10-25 21:04:01 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-10-14 16:08:22 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
buildInContainer:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2019-11-24 14:20:19 -08:00
|
|
|
image: docker://subsurface/trusty-qt512:1.0
|
2019-10-14 16:08:22 -07:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout sources
|
2019-10-17 16:12:42 -07:00
|
|
|
uses: actions/checkout@v1
|
2019-10-14 16:08:22 -07:00
|
|
|
|
|
|
|
- name: run build
|
|
|
|
run: |
|
2019-10-17 16:12:42 -07:00
|
|
|
cd ..
|
2020-01-27 14:50:52 -08:00
|
|
|
rm -rf /install-root/include/libdivecomputer
|
2019-10-18 09:25:14 -07:00
|
|
|
bash -x subsurface/.github/workflows/scripts/linux-in-container-build.sh
|
2019-10-14 16:08:22 -07:00
|
|
|
|
2019-10-17 16:12:42 -07:00
|
|
|
- name: create CI release
|
2019-10-26 22:28:30 -04:00
|
|
|
if: github.event_name == 'push'
|
2019-10-17 16:12:42 -07:00
|
|
|
uses: ./.github/actions/release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GITHUB_REPO: ${{ github.repository }}
|
|
|
|
REF: ${{ github.ref }}
|
|
|
|
COMMIT: ${{ github.sha }}
|
|
|
|
BIN1: ./Subsurface.AppImage
|
2019-10-25 16:53:48 -04:00
|
|
|
|
2019-10-26 22:28:30 -04:00
|
|
|
- name: prepare PR artifacts
|
|
|
|
if: github.event_name == 'pull_request'
|
2019-10-25 16:53:48 -04:00
|
|
|
run: |
|
2019-10-26 22:28:30 -04:00
|
|
|
mkdir -p Linux-artifacts
|
|
|
|
mv Subsurface.AppImage Linux-artifacts
|
|
|
|
|
|
|
|
- name: PR artifacts
|
|
|
|
if: github.event_name == 'pull_request'
|
|
|
|
uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: Linux-artifacts
|
|
|
|
path: Linux-artifacts
|