mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-17 10:27:17 -05:00
26 lines
552 B
YAML
26 lines
552 B
YAML
|
name: build
|
||
|
description: "Runs cmake & default make target in build folder."
|
||
|
runs:
|
||
|
using: 'composite'
|
||
|
steps:
|
||
|
- name: Install build dependencies
|
||
|
run: |
|
||
|
sudo apt-get update
|
||
|
sudo apt-get install \
|
||
|
build-essential cmake \
|
||
|
-y
|
||
|
shell: bash
|
||
|
- name: Install Go
|
||
|
uses: actions/setup-go@v3
|
||
|
with:
|
||
|
go-version: '1.18.1'
|
||
|
- name: Build CLI
|
||
|
run: |
|
||
|
mkdir build
|
||
|
cd build
|
||
|
cmake ..
|
||
|
make -j`nproc` cli
|
||
|
echo "$(pwd)" >> $GITHUB_PATH
|
||
|
export PATH="$PATH:$(pwd)"
|
||
|
shell: bash
|