-
Notifications
You must be signed in to change notification settings - Fork 5
69 lines (58 loc) · 1.87 KB
/
_build-native-only.yml
File metadata and controls
69 lines (58 loc) · 1.87 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: "> Build Native Only"
on:
workflow_call:
# No secrets needed
env:
# https://gist.github.com/NodeJSmith/e7e37f2d3f162456869f015f842bcf15
PYTHONIOENCODING: "utf8"
jobs:
build_native:
runs-on: ${{ matrix.runner }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest]
experimental: [false]
include:
- runner: ubuntu-24.04-arm
experimental: true
- runner: macos-latest
experimental: true
- runner: macos-15-intel
experimental: true
- runner: windows-latest
experimental: true
- runner: windows-11-arm
experimental: true
permissions:
attestations: write
contents: read
id-token: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
with:
version-file: "pyproject.toml"
enable-cache: true
cache-dependency-glob: uv.lock
- name: Install upx for native Windows version
if: ${{ matrix.runner == 'windows-latest' || matrix.runner == 'windows-11-arm' }}
shell: bash
run: |
choco install upx --no-progress
- name: Build native distribution into dist_native/
shell: bash
run: make dist_native
- name: Upload dist_native artifacts
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: ${{ always() && (env.GITHUB_WORKFLOW_RUNTIME != 'ACT') }}
with:
name: dist_native-${{ matrix.runner }}
path: dist_native/aignostics.7z
retention-days: 1