-
Notifications
You must be signed in to change notification settings - Fork 28
52 lines (46 loc) · 1.53 KB
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# PR CI workflow for openslide-winbuild
name: Build
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
setup:
name: Set up
runs-on: ubuntu-latest
outputs:
builder_repo_and_digest: ${{ steps.find.outputs.builder_repo_and_digest }}
pkgver: ${{ steps.params.outputs.pkgver }}
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Find builder container digest
id: find
uses: ./.github/find-container-digest
- name: Calculate parameters
id: params
run: echo "pkgver=pr-${{ github.event.number }}.${{ github.run_number }}.${{ github.run_attempt }}-$(echo ${{ github.sha }} | cut -c-7)" >> $GITHUB_OUTPUT
stable:
name: Stable
needs: setup
uses: ./.github/workflows/windows.yml
with:
builder_repo_and_digest: ${{ needs.setup.outputs.builder_repo_and_digest }}
openslide_winbuild_repo: ${{ github.repository }}
openslide_winbuild_ref: ${{ github.ref }}
pkgver: ${{ needs.setup.outputs.pkgver }}-stable
git:
name: Git
needs: setup
uses: ./.github/workflows/windows.yml
with:
builder_repo_and_digest: ${{ needs.setup.outputs.builder_repo_and_digest }}
openslide_repo: openslide/openslide
openslide_ref: main
openslide_java_repo: openslide/openslide-java
openslide_java_ref: main
openslide_winbuild_repo: ${{ github.repository }}
openslide_winbuild_ref: ${{ github.ref }}
pkgver: ${{ needs.setup.outputs.pkgver }}-git
werror: true