From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7840) id 0D6403858C2D; Fri, 5 Aug 2022 20:45:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D6403858C2D Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Eugene Rozenfeld To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/microsoft/heads/main)] Multiple improvements to workflow X-Act-Checkin: gcc X-Git-Author: Navid Rahimi X-Git-Refname: refs/vendors/microsoft/heads/main X-Git-Oldrev: 820cb7a73b164ccb0433819ca4e11bdc1a3a63b8 X-Git-Newrev: 5cdbfd5e01e7488a1b1e1ad92372466c2e90b9a7 Message-Id: <20220805204511.0D6403858C2D@sourceware.org> Date: Fri, 5 Aug 2022 20:45:11 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2022 20:45:11 -0000 https://gcc.gnu.org/g:5cdbfd5e01e7488a1b1e1ad92372466c2e90b9a7 commit 5cdbfd5e01e7488a1b1e1ad92372466c2e90b9a7 Author: Navid Rahimi Date: Tue Aug 2 18:43:04 2022 -0700 Multiple improvements to workflow * Removed the pull request events. We only will run the event on push events and manually. * Improved the documentation. * Removed the git fetch step. We don't need that step anymore. Diff: --- .github/actions/build-tarball/action.yaml | 8 -------- .github/workflows/package-rpm.yaml | 15 ++++++++------- .github/workflows/package-source-tarball.yaml | 8 +------- 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/.github/actions/build-tarball/action.yaml b/.github/actions/build-tarball/action.yaml index a86cba8dc94..c462c139e2d 100644 --- a/.github/actions/build-tarball/action.yaml +++ b/.github/actions/build-tarball/action.yaml @@ -66,14 +66,6 @@ runs: unset HOME && tdnf install glibc-devel file dejagnu texinfo build-essential rpm-build git ca-certificates wget flex bison gdb gawk libgomp-devel gfortran libgomp lapack libdwarf make sudo autoconf automake libstdc++ libstdc++-devel sed gmp-devel mpfr-devel libmpc-devel lynx -y shell: bash - # In our fork of gcc_release script, gcc_release clones the repository locally. - # Because of that we need the release branch we are building to be available locally. - - name: Enable Release Branch Locally - working-directory: ./gcc - run: | - git fetch origin ${{ env.branch_name }}:${{ env.branch_name }} - shell: bash - # This is just running gcc_relase script with bare minimum flags. # The flags are : # -f : build is final (don't append "snapshot" to the end of tar.xz files). diff --git a/.github/workflows/package-rpm.yaml b/.github/workflows/package-rpm.yaml index d456849e63a..d37b85e8abd 100644 --- a/.github/workflows/package-rpm.yaml +++ b/.github/workflows/package-rpm.yaml @@ -22,18 +22,12 @@ name: package-rpm -# Disable for now since packaging needs to run after the build. -# Run this workflow on every new commit -# For the time being, we are only running this workflow manually. on: - # We use the push and pull_request events instead of the workflow_run event + # We use only push event and workflow_dispatch event. # so that this workflow will show up during the PR push: branches: - "releases/**" - pull_request: - branches: - - "releases/**" workflow_dispatch: jobs: @@ -58,6 +52,13 @@ jobs: lfs: false path: gcc + # This step is just for debugging. + # We print the status of the repository and the branches available. + - name: Print the Git Information In Repository + shell: bash + working-directory: ./gcc + run: git status && git branch --all + # Run composite job to generate gcc tar.xz files. - name: Run Composite Job To Build Tarball uses: ./gcc/.github/actions/build-tarball diff --git a/.github/workflows/package-source-tarball.yaml b/.github/workflows/package-source-tarball.yaml index cad53faff3e..9615d2e6131 100644 --- a/.github/workflows/package-source-tarball.yaml +++ b/.github/workflows/package-source-tarball.yaml @@ -22,18 +22,12 @@ name: package-source-tarball -# Disable for now since packaging needs to run after the build. -# Run this workflow on every new commit -# For the time being, we are only running this workflow manually. on: - # We use the push and pull_request events instead of the workflow_run event + # We use only push event and workflow_dispatch event. # so that this workflow will show up during the PR push: branches: - "releases/**" - pull_request: - branches: - - "releases/**" workflow_dispatch: jobs: