-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (43 loc) · 1.38 KB
/
ci.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
name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container:
image: freedesktopsdk/sdk:20.08-x86_64
steps:
- uses: actions/checkout@v2
- name: Build and install
env:
FLATPAK_ID: com.example.DummyEditor
run: |
set -e
meson \
--prefix=$(pwd)/ide-wrapper-build \
-Deditor_binary=/bin/echo \
-Deditor_args='["--some-option"]' \
-Deditor_title='Test dummy editor' \
-Dprogram_name=dummy-editor \
-Dflagfile_prefix=dummy \
build
ninja -C build
ninja -C build install
- uses: actions/upload-artifact@v2
with:
name: ide-wrapper-build
path: ide-wrapper-build
- name: Install shellcheck
run: |
set -e -o pipefail
shopt -s failglob
read -r shellcheck_tarball_url < <(
curl -L https://api.github.com/repos/koalaman/shellcheck/releases/latest | \
jq -r '.assets | map(select(.name | endswith("linux.x86_64.tar.xz"))) | first | .browser_download_url'
)
wget -O - "$shellcheck_tarball_url" | tar -xJf -
install -Dm755 shellcheck-*/shellcheck /usr/local/bin/shellcheck
- name: Run shellcheck
run: |
shellcheck --severity=style ide-wrapper-build/bin/dummy-editor