-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 1021 Bytes
/
run_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
41
42
43
44
45
name: Build and Run Test Application
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-22.04
name: Build and Run Test Application
container:
image: ubuntu:22.04
options: --user root
steps:
- name: Update apt and install Git 2.18+
run: |
apt-get update && apt-get upgrade -y
apt-get install -y git
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: |
apt-get install -y gcc gdb cmake make build-essential libsdl2-dev
- name: Build Application
working-directory: ./
run: |
cmake -DRUN_TEST=1 -B ./build
make -C ./build
- name: Run Application
working-directory: ./
run: |
./bin/esp_brookesia_simulator_vscode