Skip to content

Commit 2565cb8

Browse files
committed
ci: Also build boil on PR (without releasing it)
1 parent 8d99146 commit 2565cb8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/boil_release.yaml renamed to .github/workflows/boil_build_release.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
---
2-
name: Release boil
2+
name: Build/Release boil
33

44
on:
5+
pull_request:
6+
paths:
7+
- '.github/workflows/boil_build.yaml'
8+
- 'rust-toolchain.toml'
9+
- 'Cargo.*'
10+
- '**.rs'
511
push:
612
tags:
713
- "boil-[0-9]+.[0-9]+.[0-9]+**"
814

915
jobs:
1016
build:
11-
uses: ./.github/workflows/boil_build.yaml
17+
uses: ./.github/workflows/boil_reusable_build.yaml
1218
with:
1319
upload: true
1420
target: ${{ matrix.targets.target }}
@@ -22,7 +28,9 @@ jobs:
2228
- {target: x86_64-unknown-linux-gnu, os: ubuntu-latest}
2329
- {target: aarch64-apple-darwin, os: macos-latest}
2430
- {target: x86_64-apple-darwin, os: macos-latest}
31+
2532
release:
33+
if: github.event_name == 'push'
2634
runs-on: ubuntu-latest
2735
needs: [build]
2836
steps:

.github/workflows/boil_build.yaml renamed to .github/workflows/boil_reusable_build.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
---
2-
name: Build boil
3-
42
on:
53
workflow_call:
64
inputs:

0 commit comments

Comments
 (0)