forked from detain/skyscraper
-
Notifications
You must be signed in to change notification settings - Fork 13
68 lines (66 loc) · 2.08 KB
/
cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Publish
on:
push:
tags:
- '*'
jobs:
Binary:
# skip CD
if: false
name: Publish ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# This should work with only the `include`s but it currently doesn't because of this bug:
# https://github.community/t5/How-to-use-Git-and-GitHub/GitHub-Actions-Matrix-options-dont-work-as-documented/td-p/29558
target:
- windows-x86_64
- osx-x86_64
- linux-x86_64
- android-aarch64
- android-arm
include:
- os: windows-latest
target: windows-x86_64
- os: macos-latest
target: osx-x86_64
- os: ubuntu-latest
target: linux-x86_64
- os: ubuntu-latest
target: android-aarch64
- os: ubuntu-latest
target: android-arm
steps:
- name: Checkout sources
uses: actions/checkout@v3
# - name: Install Qt
# if: startsWith(matrix.os, 'windows')
# uses: jurplel/install-qt-action@master
# with:
# host: 'windows'
# target: 'desktop'
# arch: 'win64_msvc2019_64'
# install-deps: 'true'
# modules: 'qtwebengine'
# archives: 'qtbase'
# cache: 'false'
# tools: 'tools_ifw tools_qtcreator,qt.tools.qtcreator'
- name: Install deps
run: bash ./supplementary/workflows/deps "${{ matrix.target }}"
- name: Build
run: bash ./supplementary/workflows/install "${{ matrix.target }}"
- name: Test
run: bash ./supplementary/workflows/test "${{ matrix.target }}"
- name: Zip
run: bash ./supplementary/workflows/zip
- name: Version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Upload
uses: svenstaro/upload-release-action@master
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./target/skyscraper.tar.gz
tag: ${{ github.ref }}
asset_name: skyscraper-${{ steps.get_version.outputs.VERSION }}-${{ matrix.target }}.tar.gz