-
Notifications
You must be signed in to change notification settings - Fork 1
107 lines (86 loc) · 2.16 KB
/
Copy pathrelease.yml
File metadata and controls
107 lines (86 loc) · 2.16 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Release
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
branches-ignore:
- "**"
permissions:
actions: read
contents: write
jobs:
lint_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
with:
path: |
~/.cache/
~/.cargo/
~/.rustup/toolchains
~/.rustup/update-hashes
~/.rustup/settings.toml
target/
key: lint_release
- name: Install cargo-about
run: cargo install --locked cargo-about
- name: Lint release
run: python3 scripts/release.py lint
await_ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Wait for successful CI run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 scripts/release.py wait-ci ${{ github.sha }}
extras:
needs:
- lint_release
- await_ci
uses: ./.github/workflows/extras.yml
create_release:
needs: extras
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Create draft release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 scripts/release.py create
macos_binary:
runs-on: macos-latest
needs: create_release
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install x86_64 target
run: rustup target add x86_64-apple-darwin
- name: Build and upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: scripts/upload_macos.sh
windows_binary:
runs-on: windows-2025
needs: create_release
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Build and upload artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: scripts/upload_windows.ps1