Fix zlib-ng update checking #370
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PR CI workflow for openslide-bin | |
name: Build PR | |
on: | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
pre-commit: | |
name: Rerun pre-commit checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Run pre-commit hooks | |
uses: pre-commit/[email protected] | |
setup: | |
name: Set up | |
runs-on: ubuntu-latest | |
outputs: | |
linux_builder_repo_and_digest: ${{ steps.find-linux.outputs.builder_repo_and_digest }} | |
suffix: ${{ steps.params.outputs.suffix }} | |
windows_builder_repo_and_digest: ${{ steps.find-windows.outputs.builder_repo_and_digest }} | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Find Linux builder container digest | |
id: find-linux | |
uses: ./.github/find-container-digest | |
with: | |
builder_image: linux | |
- name: Find Windows builder container digest | |
id: find-windows | |
uses: ./.github/find-container-digest | |
with: | |
builder_image: windows | |
- name: Calculate parameters | |
id: params | |
run: echo "suffix=$(date +%Y%m%d).bin.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/build.yml | |
with: | |
linux_builder_repo_and_digest: ${{ needs.setup.outputs.linux_builder_repo_and_digest }} | |
macos_enable: true | |
openslide_bin_repo: ${{ github.repository }} | |
openslide_bin_ref: ${{ github.ref }} | |
suffix: ${{ needs.setup.outputs.suffix }}.stable | |
windows_builder_repo_and_digest: ${{ needs.setup.outputs.windows_builder_repo_and_digest }} | |
git: | |
name: Git | |
needs: setup | |
uses: ./.github/workflows/build.yml | |
with: | |
linux_builder_repo_and_digest: ${{ needs.setup.outputs.linux_builder_repo_and_digest }} | |
macos_enable: true | |
openslide_repo: openslide/openslide | |
openslide_ref: main | |
openslide_bin_repo: ${{ github.repository }} | |
openslide_bin_ref: ${{ github.ref }} | |
suffix: ${{ needs.setup.outputs.suffix }}.git | |
werror: true | |
windows_builder_repo_and_digest: ${{ needs.setup.outputs.windows_builder_repo_and_digest }} |