Skip to content

Commit

Permalink
chore: Refactor build workflow and remove unnecessary steps
Browse files Browse the repository at this point in the history
- Remove commented out build steps in `.github/workflows/build-misc.yml`
- Improve code readability and maintainability
  • Loading branch information
cyrinux committed Jan 5, 2024
1 parent f0c29bd commit cc4ae1a
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions .github/workflows/build-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ jobs:
main:
if: |
github.event_name == 'workflow_dispatch' ||
contains(github.event.head_commit.message, '[build-all]') # ||
# contains(github.event.head_commit.message, '[build-hyprland]') ||
# contains(github.event.head_commit.message, '[build-nvidia]') ||
# contains(github.event.head_commit.message, '[build-legacyrenderer]') ||
# contains(github.event.head_commit.message, '[build-git-all]') ||
# contains(github.event.head_commit.message, '[build-git-hyprland]') ||
# contains(github.event.head_commit.message, '[build-git-nvidia]')
contains(github.event.head_commit.message, '[build-all]')
runs-on: ubuntu-latest
container:
image: "registry.fedoraproject.org/fedora-minimal:latest"
Expand All @@ -41,33 +35,3 @@ jobs:
if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[build-all]')
run: |
parallel copr-cli build-package cyrinux/misc $chroots --nowait --name ::: {hyprland-autoname-workspaces,magic-wormhole,SwayAudioIdleInhibit}
# - name: Build hyprland
# if: contains(github.event.head_commit.message, '[build-hyprland]')
# run: |
# copr-cli build-package cyrinux/misc $chroots --nowait --name hyprland

# - name: Build hyprland-nvidia
# if: contains(github.event.head_commit.message, '[build-nvidia]')
# run: |
# copr-cli build-package cyrinux/misc $chroots --nowait --name hyprland-nvidia

# - name: Build hyprland-legacyrenderer
# if: contains(github.event.head_commit.message, '[build-legacyrenderer]')
# run: |
# copr-cli build-package cyrinux/misc $chroots --nowait --name hyprland-legacyrenderer

# - name: Build all (git)
# if: contains(github.event.head_commit.message, '[build-git-all]')
# run: |
# parallel copr-cli build-package cyrinux/misc $chroots --nowait --name ::: hyprland-{,nvidia-}git

# - name: Build hyprland-git
# if: contains(github.event.head_commit.message, '[build-git-hyprland]')
# run: |
# copr-cli build-package cyrinux/misc $chroots --nowait --name hyprland-git

# - name: Build hyprland-nvidia-git
# if: contains(github.event.head_commit.message, '[build-git-nvidia]')
# run: |
# copr-cli build-package cyrinux/misc $chroots --nowait --name hyprland-nvidia-git

0 comments on commit cc4ae1a

Please sign in to comment.