Skip to content

Fix build (#9)

Fix build (#9) #116

Workflow file for this run

name: Build Zed Nightly
on:
schedule:
- cron: "0 0 * * *" # Runs every night at midnight UTC
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Enable long paths in Git
run: |
git config --system core.longpaths true
- name: Enable long paths in Windows
shell: powershell
run: |
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" `
-Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
- name: Checkout repository
uses: actions/checkout@v3
with:
repository: zed-industries/zed
ref: main
- name: Install rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
target: wasm32-wasi
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Build release
uses: actions-rs/cargo@v1
with:
command: build
args: --release
- name: Archive build
uses: actions/upload-artifact@v4
with:
name: zed-release
path: target/release/zed.exe
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download release artifact
uses: actions/download-artifact@v4
with:
name: zed-release
path: zed-release
- name: Get the current date
id: date
run: echo "CURRENT_DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Zip the release artifact
run: zip -r zed-windows.zip zed-release/*
- name: Upload release build artifact to GitHub Release
uses: softprops/action-gh-release@v2
with:
name: ${{ env.CURRENT_DATE }}
tag_name: ${{ env.CURRENT_DATE }}
draft: false
make_latest: true
files: zed-windows.zip