-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (38 loc) · 1.22 KB
/
build-and-test.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: Build & Test on Ubuntu
on: push
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y valgrind
sudo apt-get install -y binutils-dev
- name: Add Toolchain PPA
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
- name: Add debian repository
uses: myci-actions/add-deb-repo@10
with:
repo: deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main
repo-name: llvm-toolchain
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
update: true
install: clang-16 llvm-16
- name: Update Alternatives
run: |
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100
sudo update-alternatives --set clang /usr/bin/clang-16
- name: Python 3.9 Time
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install requirements
run: |
python3.9 -m pip install tatsu requests
- name: Checkout
uses: actions/checkout@v4
- name: Do the thing
run: |
python3.9 travis.py