1# Generated from xtask::workflows::run_bundling
2# Rebuild with `cargo xtask workflows`.
3name: run_bundling
4env:
5 CARGO_TERM_COLOR: always
6 CARGO_INCREMENTAL: '0'
7 RUST_BACKTRACE: '1'
8 ZED_CLIENT_CHECKSUM_SEED: ${{ secrets.ZED_CLIENT_CHECKSUM_SEED }}
9 ZED_MINIDUMP_ENDPOINT: ${{ secrets.ZED_SENTRY_MINIDUMP_ENDPOINT }}
10on:
11 pull_request:
12 types:
13 - labeled
14 - synchronize
15jobs:
16 bundle_mac:
17 if: |-
18 (github.event.action == 'labeled' && github.event.label.name == 'run-bundling') ||
19 (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'run-bundling'))
20 runs-on: self-mini-macos
21 env:
22 MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
23 MACOS_CERTIFICATE_PASSWORD: ${{ secrets.MACOS_CERTIFICATE_PASSWORD }}
24 APPLE_NOTARIZATION_KEY: ${{ secrets.APPLE_NOTARIZATION_KEY }}
25 APPLE_NOTARIZATION_KEY_ID: ${{ secrets.APPLE_NOTARIZATION_KEY_ID }}
26 APPLE_NOTARIZATION_ISSUER_ID: ${{ secrets.APPLE_NOTARIZATION_ISSUER_ID }}
27 steps:
28 - name: steps::checkout_repo
29 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
30 with:
31 clean: 'false'
32 - name: steps::setup_node
33 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
34 with:
35 node-version: '20'
36 - name: steps::setup_sentry
37 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
38 with:
39 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
40 - name: steps::clear_target_dir_if_large
41 run: script/clear-target-dir-if-larger-than ${{ env.MAX_SIZE }}
42 shell: bash -euxo pipefail {0}
43 env:
44 MAX_SIZE: ${{ runner.os == 'macOS' && 300 || 100 }}
45 - name: ./script/bundle-mac
46 run: ./script/bundle-mac
47 shell: bash -euxo pipefail {0}
48 - name: '@actions/upload-artifact Zed_${{ github.event.pull_request.head.sha || github.sha }}-aarch64.dmg'
49 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
50 with:
51 name: Zed_${{ github.event.pull_request.head.sha || github.sha }}-aarch64.dmg
52 path: target/aarch64-apple-darwin/release/Zed.dmg
53 - name: '@actions/upload-artifact Zed_${{ github.event.pull_request.head.sha || github.sha }}-x86_64.dmg'
54 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
55 with:
56 name: Zed_${{ github.event.pull_request.head.sha || github.sha }}-x86_64.dmg
57 path: target/x86_64-apple-darwin/release/Zed.dmg
58 timeout-minutes: 60
59 bundle_linux_x86_64:
60 if: |-
61 (github.event.action == 'labeled' && github.event.label.name == 'run-bundling') ||
62 (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'run-bundling'))
63 runs-on: namespace-profile-32x64-ubuntu-2004
64 steps:
65 - name: steps::checkout_repo
66 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
67 with:
68 clean: 'false'
69 - name: steps::setup_sentry
70 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
71 with:
72 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
73 - name: ./script/linux
74 run: ./script/linux
75 shell: bash -euxo pipefail {0}
76 - name: ./script/install-mold
77 run: ./script/install-mold
78 shell: bash -euxo pipefail {0}
79 - name: ./script/bundle-linux
80 run: ./script/bundle-linux
81 shell: bash -euxo pipefail {0}
82 - name: '@actions/upload-artifact zed-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz'
83 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
84 with:
85 name: zed-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz
86 path: target/release/zed-*.tar.gz
87 - name: '@actions/upload-artifact zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz'
88 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
89 with:
90 name: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz
91 path: target/release/zed-remote-server-*.tar.gz
92 timeout-minutes: 60
93 bundle_linux_arm64:
94 if: |-
95 (github.event.action == 'labeled' && github.event.label.name == 'run-bundling') ||
96 (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'run-bundling'))
97 runs-on: namespace-profile-8x32-ubuntu-2004-arm-m4
98 steps:
99 - name: steps::checkout_repo
100 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
101 with:
102 clean: 'false'
103 - name: steps::setup_sentry
104 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
105 with:
106 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
107 - name: ./script/linux
108 run: ./script/linux
109 shell: bash -euxo pipefail {0}
110 - name: ./script/bundle-linux
111 run: ./script/bundle-linux
112 shell: bash -euxo pipefail {0}
113 - name: '@actions/upload-artifact zed-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gz'
114 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
115 with:
116 name: zed-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gz
117 path: target/release/zed-*.tar.gz
118 - name: '@actions/upload-artifact zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gz'
119 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
120 with:
121 name: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-aarch64-unknown-linux-gnu.tar.gz
122 path: target/release/zed-remote-server-*.tar.gz
123 timeout-minutes: 60
124 bundle_windows_x86_64:
125 if: |-
126 (github.event.action == 'labeled' && github.event.label.name == 'run-bundling') ||
127 (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'run-bundling'))
128 runs-on: self-32vcpu-windows-2022
129 env:
130 AZURE_TENANT_ID: ${{ secrets.AZURE_SIGNING_TENANT_ID }}
131 AZURE_CLIENT_ID: ${{ secrets.AZURE_SIGNING_CLIENT_ID }}
132 AZURE_CLIENT_SECRET: ${{ secrets.AZURE_SIGNING_CLIENT_SECRET }}
133 ACCOUNT_NAME: ${{ vars.AZURE_SIGNING_ACCOUNT_NAME }}
134 CERT_PROFILE_NAME: ${{ vars.AZURE_SIGNING_CERT_PROFILE_NAME }}
135 ENDPOINT: ${{ vars.AZURE_SIGNING_ENDPOINT }}
136 FILE_DIGEST: SHA256
137 TIMESTAMP_DIGEST: SHA256
138 TIMESTAMP_SERVER: http://timestamp.acs.microsoft.com
139 steps:
140 - name: steps::checkout_repo
141 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
142 with:
143 clean: 'false'
144 - name: steps::setup_sentry
145 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
146 with:
147 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
148 - name: run_bundling::bundle_windows
149 run: script/bundle-windows.ps1 -Architecture x86_64
150 shell: pwsh
151 working-directory: ${{ env.ZED_WORKSPACE }}
152 - name: '@actions/upload-artifact Zed_${{ github.event.pull_request.head.sha || github.sha }}-x86_64.exe'
153 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
154 with:
155 name: Zed_${{ github.event.pull_request.head.sha || github.sha }}-x86_64.exe
156 path: ${{ env.SETUP_PATH }}
157 timeout-minutes: 60
158 bundle_windows_arm64:
159 if: |-
160 (github.event.action == 'labeled' && github.event.label.name == 'run-bundling') ||
161 (github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'run-bundling'))
162 runs-on: self-32vcpu-windows-2022
163 env:
164 AZURE_TENANT_ID: ${{ secrets.AZURE_SIGNING_TENANT_ID }}
165 AZURE_CLIENT_ID: ${{ secrets.AZURE_SIGNING_CLIENT_ID }}
166 AZURE_CLIENT_SECRET: ${{ secrets.AZURE_SIGNING_CLIENT_SECRET }}
167 ACCOUNT_NAME: ${{ vars.AZURE_SIGNING_ACCOUNT_NAME }}
168 CERT_PROFILE_NAME: ${{ vars.AZURE_SIGNING_CERT_PROFILE_NAME }}
169 ENDPOINT: ${{ vars.AZURE_SIGNING_ENDPOINT }}
170 FILE_DIGEST: SHA256
171 TIMESTAMP_DIGEST: SHA256
172 TIMESTAMP_SERVER: http://timestamp.acs.microsoft.com
173 steps:
174 - name: steps::checkout_repo
175 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
176 with:
177 clean: 'false'
178 - name: steps::setup_sentry
179 uses: matbour/setup-sentry-cli@3e938c54b3018bdd019973689ef984e033b0454b
180 with:
181 token: ${{ secrets.SENTRY_AUTH_TOKEN }}
182 - name: run_bundling::bundle_windows
183 run: script/bundle-windows.ps1 -Architecture aarch64
184 shell: pwsh
185 working-directory: ${{ env.ZED_WORKSPACE }}
186 - name: '@actions/upload-artifact Zed_${{ github.event.pull_request.head.sha || github.sha }}-aarch64.exe'
187 uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
188 with:
189 name: Zed_${{ github.event.pull_request.head.sha || github.sha }}-aarch64.exe
190 path: ${{ env.SETUP_PATH }}
191 timeout-minutes: 60
192concurrency:
193 group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
194 cancel-in-progress: true