-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (41 loc) · 1.08 KB
/
development.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
on:
push:
branches:
- main
workflow_dispatch:
env:
PYTHONIOENCODING: utf-8
PYTHONLEGACYWINDOWSSTDIO: utf-8
jobs:
check-ubuntu-x86_64:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
steps:
- name: Checkout git repo
uses: actions/checkout@v2
with:
path: main
- name: Preparations
working-directory: main
run: |
# The 'submodules' option for actions/checkout@v2 doesn't
# seem to work. So we manually sync it just in case.
git submodule init
git submodule update
sudo apt update
sudo apt install -y cmake ninja-build g++
mkdir -p compiler/cmake-build-release
- name: Configuring CMake
working-directory: main/compiler/cmake-build-release
run: |
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../
- name: Build
working-directory: main/compiler/cmake-build-release
run: |
ninja all
- name: Test
working-directory: main/compiler/cmake-build-release
run: |
ninja test