Skip to content

Commit

Permalink
get two versions of expected content for tzlc
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNikiforov committed Jul 11, 2024
1 parent b42d0ea commit 01ceb8d
Showing 1 changed file with 42 additions and 4 deletions.
46 changes: 42 additions & 4 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
path: |
dist/icloud*.whl
get_expected_version:
get_expected_version_linux:
runs-on: ubuntu-22.04
defaults:
run:
Expand Down Expand Up @@ -85,6 +85,43 @@ jobs:
outputs:
expected_version: ${{steps.get_version.outputs.expected_version}}

get_expected_version_macos:
runs-on: macos-14
defaults:
run:
shell: bash

steps:
- uses: actions/checkout@v4

- name: Download version info
uses: actions/download-artifact@v4
with:
name: icloudpd-${{github.sha}}-version-info
path: |
src/foundation
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install Dev dependencies
run: |
pip3 install --disable-pip-version-check -e .
- name: Get Version
id: get_version
run: |
echo expected_version=$(TZ=America/Los_Angeles LC_ALL=ru_RU.UTF-8 icloudpd --use-os-locale --version) >> $GITHUB_OUTPUT
- name: Log version
run: |
echo "expected_version=${{steps.get_version.outputs.expected_version}}"
outputs:
expected_version: ${{steps.get_version.outputs.expected_version}}

build_linux_apt:
runs-on: ubuntu-22.04
strategy:
Expand Down Expand Up @@ -3322,7 +3359,8 @@ jobs:
- compatibility_macos_npx
- compatibility_windows_npm
- compatibility_windows_npx
- get_expected_version
- get_expected_version_linux
- get_expected_version_macos
defaults:
run:
shell: bash
Expand Down Expand Up @@ -3375,9 +3413,9 @@ jobs:
- name: Compile tzlc Report
run: |
echo "debugging report..."
scripts/compile_tzlc.py tzlc "${{needs.get_expected_version.outputs.expected_version}}"
scripts/compile_tzlc.py tzlc "${{needs.get_expected_version_linux.outputs.expected_version}}" "${{needs.get_expected_version_macos.outputs.expected_version}}"
echo "save report..."
scripts/compile_tzlc.py tzlc "${{needs.get_expected_version.outputs.expected_version}}" > dist/tzlc-${{inputs.icloudpd_version}}.md
scripts/compile_tzlc.py tzlc "${{needs.get_expected_version_linux.outputs.expected_version}}" "${{needs.get_expected_version_macos.outputs.expected_version}}"> dist/tzlc-${{inputs.icloudpd_version}}.md
- name: Upload tzlc report
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 01ceb8d

Please sign in to comment.