freebsd: Improve nightly builds of zed-remote-server (#32255)
Follow-up to: https://github.com/zed-industries/zed/pull/29561 Don't create a release Don't upload artifact to workflow. Add freebsd support to upload-nightly Release Notes: - N/A
This commit is contained in:
parent
edd40566b7
commit
454adfacae
2 changed files with 9 additions and 18 deletions
22
.github/workflows/release_nightly.yml
vendored
22
.github/workflows/release_nightly.yml
vendored
|
@ -172,6 +172,9 @@ jobs:
|
||||||
if: github.repository_owner == 'zed-industries'
|
if: github.repository_owner == 'zed-industries'
|
||||||
runs-on: github-8vcpu-ubuntu-2404
|
runs-on: github-8vcpu-ubuntu-2404
|
||||||
needs: tests
|
needs: tests
|
||||||
|
env:
|
||||||
|
DIGITALOCEAN_SPACES_ACCESS_KEY: ${{ secrets.DIGITALOCEAN_SPACES_ACCESS_KEY }}
|
||||||
|
DIGITALOCEAN_SPACES_SECRET_KEY: ${{ secrets.DIGITALOCEAN_SPACES_SECRET_KEY }}
|
||||||
name: Build Zed on FreeBSD
|
name: Build Zed on FreeBSD
|
||||||
# env:
|
# env:
|
||||||
# MYTOKEN : ${{ secrets.MYTOKEN }}
|
# MYTOKEN : ${{ secrets.MYTOKEN }}
|
||||||
|
@ -205,23 +208,8 @@ jobs:
|
||||||
rm -rf target/
|
rm -rf target/
|
||||||
cargo clean
|
cargo clean
|
||||||
|
|
||||||
- name: Upload Artifact to Workflow - zed-remote-server (run-bundling)
|
- name: Upload Zed Nightly
|
||||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
run: script/upload-nightly freebsd
|
||||||
if: contains(github.event.pull_request.labels.*.name, 'run-bundling')
|
|
||||||
with:
|
|
||||||
name: zed-remote-server-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-freebsd.gz
|
|
||||||
path: out/zed-remote-server-freebsd-x86_64.gz
|
|
||||||
|
|
||||||
- name: Upload Artifacts to release
|
|
||||||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
|
|
||||||
if: ${{ !(contains(github.event.pull_request.labels.*.name, 'run-bundling')) }}
|
|
||||||
with:
|
|
||||||
draft: true
|
|
||||||
prerelease: ${{ env.RELEASE_CHANNEL == 'preview' }}
|
|
||||||
files: |
|
|
||||||
out/zed-remote-server-freebsd-x86_64.gz
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
bundle-nix:
|
bundle-nix:
|
||||||
name: Build and cache Nix package
|
name: Build and cache Nix package
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
bash -euo pipefail
|
bash -euo pipefail
|
||||||
source script/lib/blob-store.sh
|
source script/lib/blob-store.sh
|
||||||
|
|
||||||
allowed_targets=("linux-targz" "macos")
|
allowed_targets=("linux-targz" "macos" "freebsd")
|
||||||
is_allowed_target() {
|
is_allowed_target() {
|
||||||
for val in "${allowed_targets[@]}"; do
|
for val in "${allowed_targets[@]}"; do
|
||||||
if [[ "$1" == "$val" ]]; then
|
if [[ "$1" == "$val" ]]; then
|
||||||
|
@ -55,6 +55,9 @@ case "$target" in
|
||||||
upload_to_blob_store $bucket_name "target/latest-sha" "nightly/latest-sha-linux-targz"
|
upload_to_blob_store $bucket_name "target/latest-sha" "nightly/latest-sha-linux-targz"
|
||||||
rm -f "target/latest-sha"
|
rm -f "target/latest-sha"
|
||||||
;;
|
;;
|
||||||
|
freebsd)
|
||||||
|
echo "No freebsd client build (yet)."
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Error: Unknown target '$target'"
|
echo "Error: Unknown target '$target'"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue