Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@4f1f4aec02e41874fa0262ea8ff5172d7978ad1e
- name: Prepare for build
run: |
bazel/setup-ci.sh
mkdir -p editors/code/dist
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
# env:
# BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
- name: Build
run: bazel build //...
- name: Run tests
Expand All @@ -28,17 +28,17 @@ jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@4f1f4aec02e41874fa0262ea8ff5172d7978ad1e
- name: Prepare for build
run: |
echo 'import %workspace%/bazel/remote-cache.bazelrc' >>.bazelrc
echo "build --remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY" >>.bazelrc
# echo 'import %workspace%/bazel/remote-cache.bazelrc' >>.bazelrc
# echo "build --remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY" >>.bazelrc
echo "startup --output_user_root=C:/b" >>.bazelrc
echo "startup --windows_enable_symlinks" >>.bazelrc
mkdir -p editors/code/dist
shell: bash
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
# env:
# BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
- name: Build
run: bazel build //crates/...
- name: Run tests
Expand Down
30 changes: 14 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,21 @@ jobs:
runs-on: ubuntu-latest
- name: linux-aarch64
runs-on: ubuntu-latest
- name: darwin-amd64
runs-on: macos-13
- name: darwin-arm64
runs-on: macos-14
runs-on: macos-15
fail-fast: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@4f1f4aec02e41874fa0262ea8ff5172d7978ad1e
- name: Prepare for build
run: |
bazel/setup-ci.sh
mkdir -p editors/code/dist
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
# env:
# BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
- name: Build
run: bazel build -c opt ${{ matrix.target.name == 'linux-aarch64' && '--platforms @zig_sdk//platform:linux_arm64' || '' }} //crates/starpls
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: starpls-${{ matrix.target.name }}
path: bazel-bin/crates/starpls/starpls
Expand All @@ -41,20 +39,20 @@ jobs:
name: Build (Windows)
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@4f1f4aec02e41874fa0262ea8ff5172d7978ad1e
- name: Prepare for build
run: |
echo 'import %workspace%/bazel/remote-cache.bazelrc' >>.bazelrc
echo "build --remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY" >>.bazelrc
# echo 'import %workspace%/bazel/remote-cache.bazelrc' >>.bazelrc
# echo "build --remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY" >>.bazelrc
echo "startup --output_user_root=C:/b" >>.bazelrc
echo "startup --windows_enable_symlinks" >>.bazelrc
mkdir -p editors/code/dist
shell: bash
env:
BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
# env:
# BUILDBUDDY_API_KEY: ${{ secrets.BUILDBUDDY_API_KEY }}
- name: Build
run: bazel build -c opt //crates/starpls
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: starpls-windows-amd64
path: bazel-bin/crates/starpls/starpls.exe
Expand All @@ -66,8 +64,8 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: actions/checkout@4f1f4aec02e41874fa0262ea8ff5172d7978ad1e
- uses: actions/download-artifact@484a0b528fb4d7bd804637ccb632e47a0e638317
with:
path: artifacts
pattern: starpls-*
Expand All @@ -87,7 +85,7 @@ jobs:
cp starpls-linux-aarch64 starpls && tar -czvf starpls-linux-aarch64.tar.gz starpls && rm starpls
cp starpls-linux-amd64 starpls && tar -czvf starpls-linux-amd64.tar.gz starpls && rm starpls
cp starpls-darwin-amd64 starpls && tar -czvf starpls-darwin-amd64.tar.gz starpls && rm starpls
cp starpls-darwin-arm64 starpls && tar -czvf starpls-darwin-arm64.tar.gz starpls && rm starpls
cp starpls-darwin-arm64 starpls && tar -czvf starplload_bazel_build_languages-darwin-arm64.tar.gz starpls && rm starpls
cp starpls-windows-amd64.exe starpls.exe && zip starpls-windows-amd64.zip starpls.exe && rm starpls.exe
- name: Show release artifacts
run: find release
Expand Down
6 changes: 4 additions & 2 deletions bazel/setup-ci.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash
echo 'import %workspace%/bazel/remote-cache.bazelrc' >>.bazelrc
echo "build --remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY" >>.bazelrc
if [[ -n "$BUILDBUDDY_API_KEY" ]]; then
echo 'import %workspace%/bazel/remote-cache.bazelrc' >>.bazelrc
echo "build --remote_header=x-buildbuddy-api-key=$BUILDBUDDY_API_KEY" >>.bazelrc
fi