Skip to content

Commit

Permalink
Try to get the flavors on their own badge.
Browse files Browse the repository at this point in the history
I want the main badge to be green, even if one of the linux flavors is broken
  • Loading branch information
zpostfacto committed Sep 8, 2024
1 parent 1736cfa commit 707a456
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ jobs:
- name: Build and run tests
run: bash .github/build.sh

# Trigger testing of more linux flavors
- name: Trigger linux flavors build
uses: peter-evans/repository-dispatch@v2
with:
event-type: build-linux-flavors
# Don't do it this way. This causes the main badge to
# go red if one of the flavors fails.
## Trigger testing of more linux flavors
#- name: Trigger linux flavors build
# uses: peter-evans/repository-dispatch@v2
# with:
# event-type: build-linux-flavors

build-and-test-windows:
#if: false # Temporarily disable
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/linux-flavors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ name: Linux flavors

# Triggered from the main CI build workflow
on:
workflow_call:
workflow_dispatch:
repository_dispatch:
types: [ build-linux-flavors ]
workflow_run:
workflows: ["CI"]
types:
- completed
#workflow_call:
#workflow_dispatch:
#repository_dispatch:
# types: [ build-linux-flavors ]

jobs:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GameNetworkingSockets [![Build Status](https://github.com/ValveSoftware/GameNetworkingSockets/workflows/CI/badge.svg)](https://github.com/ValveSoftware/GameNetworkingSockets/actions)
# GameNetworkingSockets [![Build Status](https://github.com/ValveSoftware/GameNetworkingSockets/workflows/CI/badge.svg)](https://github.com/ValveSoftware/GameNetworkingSockets/actions) [![Linux flavors](https://github.com/ValveSoftware/GameNetworkingSockets/workflows/Linux Flavors/badge.svg)](https://github.com/ValveSoftware/GameNetworkingSockets/actions)

GameNetworkingSockets is a basic transport layer for games. The features are:

Expand Down

0 comments on commit 707a456

Please sign in to comment.