Skip to content

Commit

Permalink
Addressed review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
shenhanc78 committed Jul 19, 2024
1 parent 4b9004f commit 4d33c16
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/create-release-build.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This starter workflow is for a CMake project running on a single platform.
# This workflow is to create a release with prebuilt create_llvm_prof binary.
name: Create Release Build

on:
Expand All @@ -10,10 +10,6 @@ on:
# Manual trigger using the Actions page.
workflow_dispatch:

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build_release:
runs-on: ubuntu-22.04-8core
Expand All @@ -28,22 +24,15 @@ jobs:
run: sudo apt-get -y install libunwind-dev libgflags-dev libssl-dev libelf-dev protobuf-compiler libzstd-dev

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_TOOL=LLVM -S ${{github.workspace}}
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DENABLE_TOOL=LLVM -S ${{github.workspace}}

- name: Build
# Build your program with the given configuration
run: make -C ${{github.workspace}}/build -j6
run: make -C ${{github.workspace}}/build -j8

- name: Run Tests
run: make -C ${{github.workspace}}/build test

# - uses: actions/upload-artifact@v4
# with:
# name: create_llvm_prof.zip
# path: ${{github.workspace}}/build/create_llvm_prof

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 4d33c16

Please sign in to comment.