Skip to content

Commit

Permalink
ci: trigger Guix CI by labeling PRs with guix-ci-build or manually …
Browse files Browse the repository at this point in the history
…via GH interface
  • Loading branch information
UdjinM6 committed Jan 2, 2025
1 parent a5787c9 commit 054037e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/guix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ permissions:
attestations: write

on:
workflow_dispatch:
pull_request_target:
types: [labeled]
push:
types: [labeled]

jobs:
build-image:
if: ${{ github.event.name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'guix-ci-build') }}
runs-on: ubuntu-latest
outputs:
image-tag: ${{ steps.prepare.outputs.image-tag }}
Expand Down Expand Up @@ -63,9 +67,7 @@ jobs:

build:
needs: build-image
# runs-on: [ "self-hosted", "linux", "x64", "ubuntu-core" ]
runs-on: ubuntu-latest
# if: ${{ contains(github.event.pull_request.labels.*.name, 'guix-build') }}
strategy:
matrix:
build_target: [x86_64-linux-gnu, arm-linux-gnueabihf, aarch64-linux-gnu, riscv64-linux-gnu, powerpc64-linux-gnu, x86_64-w64-mingw32, x86_64-apple-darwin, arm64-apple-darwin]
Expand Down

0 comments on commit 054037e

Please sign in to comment.