Skip to content

Trigger action

Trigger action #78

Workflow file for this run

name: build
on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
name: Build on Ubuntu 20.04
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: 'ubuntu-20.04'
steps:
- uses: actions/checkout@v3
- name: Install GCC
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: g++-11
debug: false # It appears to be generating extra artifacts which contains debug logs
- name: Get the latest version of CMake
uses: lukka/get-cmake@latest
- name: Restore vcpkg artifacts, or setup vcpkg for building artifacts
uses: lukka/[email protected]
with:
# Specify the full SHA-1 hash of a Git commit (not a branch name, nor a tag!) that establishes which version of vcpkg needs to be used. When using vcpkg as a Git submodule, this input is *not* needed as implicitly specified by the submodule.
vcpkgGitCommitId: '12c2a93b4007612b5ffa980c9d2235eb0bcac10f'
- name: run-cmake
uses: lukka/[email protected]
with:
# The name of the configure preset. Optional.
configurePreset: 'linux-g++-11-x64-release'
# The name of the build preset. Optional.
buildPreset: 'build-linux-g++-11-x64-release'
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
# A file, directory or wildcard pattern that describes what to upload
path: ./out/build/linux-g++-11-x64-release/Relay
if-no-files-found: error