-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 981 Bytes
/
tests.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
name: C++ Build and Test
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install GCC 13
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update
sudo apt-get install -y gcc-13 g++-13
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 100
- name: Install CMake
run: |
sudo apt-get install -y cmake
- name: Check out repository
uses: actions/checkout@v2
- name: Build and Test
run: |
mkdir build
cd build
cmake ..
cmake --build .
cd ..
python tools/test_runner.py build/src/laszlo test