-
Notifications
You must be signed in to change notification settings - Fork 7
65 lines (51 loc) · 1.61 KB
/
ccpp.yml
File metadata and controls
65 lines (51 loc) · 1.61 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
name: C/C++ CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Install clang-format-15
run: |
source /etc/os-release
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/$UBUNTU_CODENAME/ llvm-toolchain-$UBUNTU_CODENAME-15 main"
sudo apt-get update
sudo apt-get install clang-format-15
- name: Validate Formatting
run: sh ./doc/scripts/validate-formatting.sh
build-kactl:
runs-on: ubuntu-latest
timeout-minutes: 20
needs: validate
steps:
- uses: actions/checkout@v2
- name: Install pdflatex
run: sudo apt-get install texlive-latex-base texlive-latex-recommended texlive-latex-extra
- name: Build pdf
run: make kactl
- name: Build snippets
run: make snippets
- name: Compress snippets
run: zip -r snippets.zip ./snippets
create-release:
runs-on: ubuntu-latest
timeout-minutes: 20
if: ${{ github.event_name == 'push' }} # don't make release on PR
needs: build-kactl
- uses: actions/checkout@v2
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Latest PDF and Snippets"
files: |
kactl.pdf
./snippets/*.json
snippets.zip