Skip to content

Pre Release

Pre Release #81

Workflow file for this run

#
# Copyright (c) 2022-present, Trail of Bits, Inc.
# All rights reserved.
#
# This source code is licensed in accordance with the terms specified in
# the LICENSE file found in the root directory of this source tree.
#
name: "Pre Release"
on:
workflow_run:
workflows: ["Build"]
types:
- completed
branches:
- "master"
permissions: write-all
jobs:
build:
name: "Pre Release"
runs-on: "ubuntu-latest"
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Clone the vast repository
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 1
- name: Build and run dev container task
uses: devcontainers/[email protected]
with:
runCmd: |
export CC=clang-16
export TOOLCHAIN=$(pwd)/cmake/lld.toolchain.cmake
cmake --preset ninja-multi-default --toolchain ${TOOLCHAIN} \
-D CMAKE_VERBOSE_MAKEFILE=True \
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} \
-DLLVM_EXTERNAL_LIT=${LLVM_EXTERNAL_LIT} || exit 1
cmake --build --preset ninja-rel -j $(nproc) || exit 1
cpack -G TXZ --config ./builds/ninja-multi-default/CPackConfig.cmake || exit 1
- name: "Publish Pre-Release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
${{ github.workspace }}/vast/LICENSE
${{ github.workspace }}/vast/builds/ninja-multi-default/package/vast-*/*.tar.xz