Build Zed dmg

This commit is contained in:
Kirill Bulatov 2023-05-14 22:09:28 +03:00
parent 4f36ba3b1e
commit 5465948f20

View File

@ -1,7 +1,10 @@
name: Build Zed.dmg
on: on:
push: push:
branches: branches:
- main - main
- "v[0-9]+.[0-9]+.x"
pull_request: pull_request:
defaults: defaults:
@ -20,8 +23,6 @@ env:
jobs: jobs:
build-dmg: build-dmg:
if: github.ref_name == 'main' || contains(github.event.pull_request.labels.*.name, 'run-build-dmg') if: github.ref_name == 'main' || contains(github.event.pull_request.labels.*.name, 'run-build-dmg')
env:
SHA: ${{ github.event.pull_request.head.sha || github.sha }}
runs-on: runs-on:
- self-hosted - self-hosted
- test - test
@ -38,12 +39,16 @@ jobs:
rustup set profile minimal rustup set profile minimal
rustup update stable rustup update stable
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Build dmg bundle - name: Build dmg bundle
run: ./script/bundle run: ./script/bundle
- name: Upload the build stats - name: Upload the build artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: zed-main-$SHA.dmg name: Zed_${{ github.event.pull_request.head.sha || github.sha }}.dmg
path: ./target/release/Zed.dmg path: ./target/release/Zed.dmg