Skip to content

Commit 200d4e8

Browse files
committed
ci: add build
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent 8907364 commit 200d4e8

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# @copyright Copyright (c) contributors to Project Ocre,
2+
# which has been established as Project Ocre a Series of LF Projects, LLC
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
name: Build Samples
7+
8+
on:
9+
pull_request:
10+
push:
11+
branches:
12+
- main
13+
workflow_dispatch:
14+
inputs:
15+
devcontainer-tag:
16+
description: "Devcontainer tag"
17+
required: false
18+
default: "latest"
19+
type: string
20+
21+
concurrency:
22+
group: ${{ github.repository }}-${{ github.workflow }}@build-${{ github.ref }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
build:
27+
name: Build Samples
28+
runs-on: "ubuntu-22.04"
29+
container:
30+
image: ghcr.io/project-ocre/ocre-runtime/devcontainer-linux:${{ inputs.devcontainer-tag || 'latest'}}
31+
options: --user 1001:127
32+
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
with:
37+
submodules: true
38+
39+
- name: Configure
40+
run: |
41+
mkdir build && cd build
42+
cmake ..
43+
make

0 commit comments

Comments
 (0)