Repository navigation
69 lines (58 loc) · 1.87 KB
/
Copy path_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: read
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.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@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: ${{ always() && (env.GITHUB_WORKFLOW_RUNTIME != 'ACT') }}
with:
name: dist_native-${{ matrix.runner }}
path: dist_native/aignostics.7z
retention-days: 1