-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (83 loc) · 2.55 KB
/
Copy pathlinux_build.yaml
File metadata and controls
90 lines (83 loc) · 2.55 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: Linux Build
on:
push:
branches: ['*']
tags:
paths_ignore: ['docs/**', '.travis.yml']
pull_request:
release:
types: ['created']
defaults:
run:
shell: bash
jobs:
build-linux:
container:
image: thebigg1/tasker-linux-ci:latest
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Publish Linunx Release
publish-release: true
config:
- {name: "ubuntu-22.04", os: "ubuntu-22.04"}
steps:
- name: Trust My Directory #https://github.com/actions/checkout/issues/760
run: |
export GIT_CEILING_DIRECTORIES=/__w
- name: Checkout
uses: actions/checkout@v3
# with:
# token: ${{ secrets.MY_REPO_PAT }}
# submodules: recursive
- name: Checkout submodules
run: |
git config --global --add safe.directory /__w/Tasker/Tasker && git submodule update --init --recursive
- name: Check Coding Style
run: |
./clang-format-all/check-all.py --root_dir Tasker
- name: Tag Repo
uses: richardsimko/update-tag@v1
with:
tag_name: nightly
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Configure CMake
run: |
git config --global --add safe.directory /__w/Tasker/Tasker
git config --global --add safe.directory /__w/Tasker/Tasker/clang-format-all
git config --global --add safe.directory /__w/Tasker/Tasker/libuiohook
git config --global --add safe.directory /__w/Tasker/Tasker/mxe
git config --global --add safe.directory /__w/Tasker/Tasker/miniaudio
git submodule update --init --recursive
mkdir build
cd build
cmake ..
- name: make
run: |
cd build
make -j8
cd ..
- name: Build AppImage
run: |
python3 Tasker/build_AppImage.py
- name: Delete old release assets
uses: mknejp/delete-release-assets@v1
with:
fail-if-no-assets: false
token: ${{ github.token }}
tag: nightly # This may also be of the form 'refs/tags/staging'
assets: '*-x86_64.AppImage'
- name: Upload binaries to release
if: ${{ matrix.publish-release }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/Tasker-*-x86_64.AppImage
tag: nightly
overwrite: true
file_glob: true
body: "Nightly build, freshly baked."