From 2498d2c2107e041dbc46fb444b03a8c018251de4 Mon Sep 17 00:00:00 2001 From: David Gonzalez Martin Date: Mon, 4 Nov 2024 09:06:28 -0600 Subject: [PATCH] Only package if needed --- .github/workflows/ci.yml | 2 +- project.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 811c349..d8b58ba 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,7 +81,7 @@ jobs: env: CMAKE_BUILD_TYPE: ${{matrix.CMAKE_BUILD_TYPE}} CMAKE_PREFIX_PATH: ${{steps.FETCH.outputs.CMAKE_PREFIX_PATH}} - BUSTER_GITHUB_RUN: "true" + BUSTER_GITHUB_MAIN_RUN: ${{ github.ref == 'refs/heads/main' }} - name: Release uses: softprops/action-gh-release@v2 if: github.ref == 'refs/heads/main' diff --git a/project.sh b/project.sh index cc630bd..632a5a5 100755 --- a/project.sh +++ b/project.sh @@ -55,8 +55,8 @@ if [[ -z "${CMAKE_PREFIX_PATH-}" ]]; then CMAKE_PREFIX_PATH="$HOME/Downloads/llvm-$BIRTH_ARCH-$BIRTH_OS-$CMAKE_BUILD_TYPE" fi -if [[ -z "${BUSTER_GITHUB_RUN-}" ]]; then - BUSTER_GITHUB_RUN=false +if [[ -z "${BUSTER_GITHUB_MAIN_RUN-}" ]]; then + BUSTER_GITHUB_MAIN_RUN=false fi case $BIRTH_OS in @@ -102,7 +102,7 @@ if [ "$#" -ne 0 ]; then $build_dir/runner $@ fi -if [ "$BUSTER_GITHUB_RUN" == "true" ]; then +if [ "$BUSTER_GITHUB_MAIN_RUN" == "true" ]; then case "$BIRTH_OS" in windows) OPT_EXTENSION=".exe";;