-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 1.05 KB
/
compile.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
name: compile
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install packages
run: sudo apt-get install -y --no-install-recommends --no-install-suggests
meson ninja-build
liburing-dev
libwayland-dev libwayland-client0 wayland-protocols
- name: configure
run: CFLAGS='-O3 -pipe' meson setup build --buildtype release
- name: compile
run: ninja -C build
- name: release
env:
GH_TOKEN: ${{ github.token }}
if: ${{ startsWith(github.event.head_commit.message, 'release:') }}
continue-on-error: true
run: |
strip build/gamepad_idle_inhibit
version=$(echo ${{ github.event.head_commit.message }} | tr ' ' '\n' | tail -n 1)
file=build/gamepad_idle_inhibit
echo **Workflow run**: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID >> notes
gh release create $version --notes-file notes $file