-
Notifications
You must be signed in to change notification settings - Fork 24
58 lines (50 loc) · 1.38 KB
/
build-distributables.yml
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
name: Build conda-packed distribution
on:
release:
types: [published]
workflow_dispatch:
env:
branch_name: master
jobs:
build_and_publish:
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- { os: ubuntu-latest, py: 3.11 }
- { os: windows-latest, py: "3.11" }
- { os: macos-latest, py: "3.11" }
- { os: macos-13, py: "3.11" }
# all using to stable abi
steps:
- uses: actions/checkout@v4
with:
ref: ${{ env.branch_name }}
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.config.py }}
- name: Build conda-packed (all platforms)
shell: bash -el {0}
run: |
conda activate base
./extra/build_conda_packed.sh
ls artifacts/*
{
echo 'DISTRIBUTABLES<<EOF'
ls artifacts/*
echo EOF
} >> "$GITHUB_ENV"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts-${{ matrix.config.os }}-${{ matrix.config.py }}
path: artifacts/*
- name: Update current release
if: startsWith(github.ref, 'refs/tags')
uses: johnwbyrd/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
${{ env.DISTRIBUTABLES }}