Skip to content

Commit 8a1a542

Browse files
committed
CI: Run package step only on this repository
1 parent 203b988 commit 8a1a542

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ jobs:
1616
os: ubuntu-latest
1717
- target: osx-exe-bundle
1818
os: macos-latest
19+
- target: book
20+
os: ubuntu-latest
1921

22+
name: Build ${{ matrix.target }}
2023
runs-on: ${{ matrix.os }}
2124
steps:
2225
- uses: actions/checkout@v2
@@ -62,6 +65,10 @@ jobs:
6265
- run: nix-build -A check-cabal-freeze
6366

6467
package:
68+
# this will only work when the jobs above have uploaded
69+
# their stuff to the nix cache, which will only work
70+
# in this repository
71+
if: github.repository == 'entropia/tip-toi-reveng'
6572
runs-on: ubuntu-latest
6673
needs: build
6774
steps:

0 commit comments

Comments
 (0)