Skip to content

Make pre-processing options like rotate/scale/splitting/flipping available 4 python binding decode_files method #273

Make pre-processing options like rotate/scale/splitting/flipping available 4 python binding decode_files method

Make pre-processing options like rotate/scale/splitting/flipping available 4 python binding decode_files method #273

Workflow file for this run

name: arm64-macos
on:
push:
branches: [main]
pull_request:
# types: [opened, reopened, ready_for_review]
branches: [main]
schedule:
- cron: "23 3 2,12,22 * *"
env:
CONAN_HOME: "${{ github.workspace }}/conan2"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-26, macos-15]
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Retrieve version
id: retrieve-version
run: |
echo "MACOS_MAJOR_VERSION=$(sw_vers --productVersion | cut -d. -f1)" >> "$GITHUB_OUTPUT"
- name: Install tooling
run: |
brew update && (brew list cmake || brew install cmake)
python3 -m venv venv
- name: Install Conan
run: |
. venv/bin/activate
pip install -r requirements.txt
etc/conan-config.sh
- name: Cache/Restore dependencies
uses: actions/cache@v5
with:
path: ${{ env.CONAN_HOME }}
key: ${{ runner.arch }}-${{ runner.os }}${{ steps.retrieve-version.outputs.MACOS_MAJOR_VERSION }}-conanfile-${{ hashFiles('**/conanfile.py') }}
- name: Install dependencies
run: |
. venv/bin/activate
etc/conan-install.sh Release -pr:a="./etc/conan/profiles/macos${{ steps.retrieve-version.outputs.MACOS_MAJOR_VERSION }}"
- name: Build
run: |
. venv/bin/activate
etc/cmake-config.sh Release
etc/cmake-build.sh Release -- -j
- name: Unit-Test C++
run: |
cert/install-uic-keys.sh
build/Release/bin/ticket-decoder-test
- name: Unit-Test Python3
run: |
. venv/bin/activate
etc/python-test.sh
- name: Archive artifacts
if: github.ref_name == 'main'
uses: actions/upload-artifact@v4
with:
name: ticket-decoder-${{ runner.arch }}-${{ runner.os }}${{ steps.retrieve-version.outputs.MACOS_MAJOR_VERSION }}
path: |
build/Release/etc/*
build/Release/lib/*
build/Release/bin/*