Wire up release_nightly workflow, to upload artifacts to DO spaces

Co-authored-by: Kirill <kirill@zed.dev>
Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-11-17 14:07:51 -08:00
parent f44f60c6e6
commit c684f08e30
5 changed files with 100 additions and 158 deletions

48
.github/actions/run_tests/action.yml vendored Normal file
View file

@ -0,0 +1,48 @@
name: 'Run tests'
description: 'Runs the tests'
runs:
using: "composite"
steps:
- name: Install Rust
shell: bash -euxo pipefail {0}
run: |
rustup set profile minimal
rustup update stable
rustup target add wasm32-wasi
cargo install cargo-nextest
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Checkout repo
uses: actions/checkout@v3
with:
clean: false
submodules: "recursive"
- name: Limit target directory size
shell: bash -euxo pipefail {0}
run: script/clear-target-dir-if-larger-than 70
- name: Run check
env:
RUSTFLAGS: -D warnings
shell: bash -euxo pipefail {0}
run: cargo check --test --workspace
- name: Run tests
env:
RUSTFLAGS: -D warnings
shell: bash -euxo pipefail {0}
run: cargo nextest run --workspace --no-fail-fast
- name: Build collab
shell: bash -euxo pipefail {0}
run: cargo build -p collab
- name: Build other binaries
shell: bash -euxo pipefail {0}
run: cargo build --workspace --bins --all-features

21
.github/actions/rust_fmt/action.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: 'Run rustfmt'
description: 'Runs rustfmt'
runs:
using: "composite"
steps:
- name: Install Rust
shell: bash -euxo pipefail {0}
run: |
rustup set profile minimal
rustup update stable
- name: Checkout repo
uses: actions/checkout@v3
with:
clean: false
submodules: "recursive"
- name: cargo fmt
shell: bash -euxo pipefail {0}
run: cargo fmt --all -- --check