-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1006 Bytes
/
build.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
name: Wren for GtkSourceView CI
on:
push:
branches: [ "main" ]
tags: [ "v0.*", "v1.*" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt install build-essential debhelper libgtksourceview-3.0-common --yes
- name: Run check
run: make check
- name: Run distcheck
run: make distcheck
- name: Upload Artifacts
id: uploadArtifacts
uses: actions/upload-artifact@v4
with:
name: gtksourceview-wren-debian
path: debian/*.deb
retention-days: 7
overwrite: true
release:
runs-on: ubuntu-latest
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
needs: build
steps:
- uses: ./.github/workflows/release.yml
with:
workflow_run_id: ${{ github.run_id }}
artifact_id: ${{ steps.uploadArtifacts.outputs.artifact-id }}