public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/microsoft/heads/main)] Multiple improvements to workflow
@ 2022-08-05 20:45 Eugene Rozenfeld
0 siblings, 0 replies; only message in thread
From: Eugene Rozenfeld @ 2022-08-05 20:45 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:5cdbfd5e01e7488a1b1e1ad92372466c2e90b9a7
commit 5cdbfd5e01e7488a1b1e1ad92372466c2e90b9a7
Author: Navid Rahimi <navidrahimi@microsoft.com>
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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-05 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-05 20:45 [gcc(refs/vendors/microsoft/heads/main)] Multiple improvements to workflow Eugene Rozenfeld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).