Debian Codegraph @

.github/workflows/nightly.yaml

raw symbols SCIP
1 name: Nightly
2
3 on:
4 schedule:
5 - cron: '0 2 * * *' # nightly at 02:00 UTC
6 workflow_dispatch:
7 inputs:
8 target_branch:
9 description: 'Target branch'
10 default: develop
11
12 jobs:
13 build_artifacts:
14 name: Build for ${{ matrix.os }}
15 runs-on: ${{ matrix.os }}
16 strategy:
17 fail-fast: false
18 matrix:
19 os: [windows-latest, ubuntu-latest, macos-latest, ubuntu-24.04-arm]
20 include:
21 - os: windows-latest
22 artifact_name: pyocd-windows
23 - os: ubuntu-latest
24 artifact_name: pyocd-linux
25 - os: macos-latest
26 artifact_name: pyocd-macos
27 - os: ubuntu-24.04-arm
28 artifact_name: pyocd-linux-arm64
29
30 steps:
31 - name: Checkout repository
32 uses: actions/checkout@v6
33 with:
34 ref: ${{ inputs.target_branch || 'develop' }}
35 fetch-depth: 0
36
37 - name: Setup Python
38 uses: actions/setup-python@v6
39 with:
40 python-version: '3.11'
41 cache: 'pip'
42
43 - name: Get version from setuptools_scm
44 shell: bash
45 run: |
46 pip install setuptools-scm
47 version=$(python -c "import setuptools_scm; print(setuptools_scm.get_version())")
48 echo "PYOCD_VERSION=$version" >> $GITHUB_ENV
49 echo "Version: $version"
50
51 - name: Install packages
52 env:
53 SETUPTOOLS_SCM_PRETEND_VERSION: ${{ env.PYOCD_VERSION }}
54 run: pip install . pyinstaller
55
56 - name: Setup build environment
57 run: python get_site-packages.py
58
59 - name: Verify environment
60 run: |
61 echo "Site packages: ${{ env.SITE_PACKAGES }}"
62 python -c "import sys; print(sys.version)"
63
64 - name: Build with PyInstaller
65 run: pyinstaller pyocd.spec --log-level=ERROR --clean
66
67 - name: Test binary
68 run: |
69 ./dist/pyocd/pyocd --version
70 ./dist/pyocd/pyocd --help
71
72 - name: Upload PyInstaller artifacts
73 uses: actions/upload-artifact@v6
74 with:
75 name: ${{ matrix.artifact_name }}-${{ env.PYOCD_VERSION }}
76 path: dist/pyocd/*
77 retention-days: 2