forked from Yatytbidlo/first_telegramBot
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (36 loc) · 971 Bytes
/
c-cpp.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
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
ubuntu-build:
name: Ubuntu Build
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Python with Meson
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
with:
python-version: '>=3.10.12'
check-latest: true
cache: 'pip'
- run: pip install -r requirements.txt
- name: Get libmozjs
run: |
sudo apt-get update -y &&
sudo apt-get install -y libmozjs-102-dev
- name: Meson build
run: |
meson build && ninja -C build