Skip to content

Commit

Permalink
Node20 GitHub actions (#980)
Browse files Browse the repository at this point in the history
* Update CI

* Tentatively add rust-cache back

* Use direnv-action

* Test new commit
  • Loading branch information
rsdy authored Sep 22, 2023
1 parent 9ac3617 commit 81cef15
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-on-pr-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
id: comment-branch

- name: Checkout PR branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/client-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -43,4 +43,4 @@ jobs:
run: npm run lint

- name: Run type-check
run: npm run client-type-check
run: npm run client-type-check
2 changes: 1 addition & 1 deletion .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Build qdrant
env:
VERSION: 1.3.2
VERSION: 1.5.1
run: |
cargo install --target ${{ matrix.target }} --git https://github.com/qdrant/qdrant --tag v${{ env.VERSION }} --locked --root . qdrant
- name: Upload binaries
Expand Down
64 changes: 25 additions & 39 deletions .github/workflows/server-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,54 +19,40 @@ jobs:
runs-on: nixos
steps:
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Git LFS
- name: Create LFS file list
run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id

- name: LFS Cache
uses: actions/cache@v3
with:
path: .git/lfs/objects
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
restore-keys: |
${{ runner.os }}-lfs-
- name: Git LFS Pull
run: git lfs install && git lfs pull

- name: Load PATH changes
run: direnv allow && direnv exec . sh -c 'echo $PATH' > "$GITHUB_PATH"

- name: Load other environment changes
run: direnv export gha >> "$GITHUB_ENV"

- uses: Swatinem/rust-cache@v2

- name: Rustfmt
run: nix develop -c bash -c 'cargo --locked fmt -p bleep -- --check'
run: cargo --locked fmt -p bleep -- --check

- name: Clippy
run: nix develop -c bash -c 'cargo --locked clippy -p bleep --features=ee'
run: cargo --locked clippy -p bleep --features=ee

- name: Tests
run: nix develop -c bash -c 'cargo --locked test -p bleep --release'
run: cargo --locked test -p bleep --release

- name: Sccache stats
run: nix develop -c bash -c 'sccache --show-stats'

# benchmark:
# runs-on: [self-hosted, benchmark]
# steps:
# - uses: actions/checkout@v3
# with:
# clean: false
# lfs: true

# - name: Setup Rust toolchain
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true

# - uses: boa-dev/criterion-compare-action@v3.2.4
# env:
# BLOOP_LOG: bleep=debug
# with:
# cwd: ./server
# benchName: "indexes"
# branchName: ${{ github.base_ref }}
# token: ${{ secrets.GITHUB_TOKEN }}

# - uses: boa-dev/criterion-compare-action@v3.2.4
# env:
# BLOOP_LOG: bleep=debug
# with:
# cwd: ./server
# benchName: "queries"
# branchName: ${{ github.base_ref }}
# token: ${{ secrets.GITHUB_TOKEN }}
run: sccache --show-stats
18 changes: 17 additions & 1 deletion .github/workflows/tauri-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,23 @@ jobs:

steps:
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create LFS file list
run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id

- name: LFS Cache
uses: actions/cache@v3
with:
path: .git/lfs/objects
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
restore-keys: |
${{ runner.os }}-lfs-
- name: Git LFS Pull
run: git lfs install && git lfs pull

- name: Install Protoc
uses: arduino/setup-protoc@v2
Expand Down
34 changes: 29 additions & 5 deletions .github/workflows/tauri-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,40 @@ jobs:
runs-on: nixos
steps:
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create LFS file list
run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id

- name: LFS Cache
uses: actions/cache@v3
with:
path: .git/lfs/objects
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
restore-keys: |
${{ runner.os }}-lfs-
- name: Git LFS Pull
run: git lfs install && git lfs pull

- name: Load PATH changes
run: direnv allow && direnv exec . sh -c 'echo $PATH' > "$GITHUB_PATH"

- name: Load other environment changes
run: direnv export gha >> "$GITHUB_ENV"

- uses: Swatinem/rust-cache@v2

- name: Rustfmt
run: nix develop -c bash -c 'cargo --locked fmt -p bloop -- --check'
run: cargo --locked fmt -p bloop -- --check

- name: Clippy
run: nix develop -c bash -c 'cargo --locked clippy -p bloop'
run: cargo --locked clippy -p bloop

- name: Tests
run: nix develop -c bash -c 'cargo --locked test -p bloop --release'
run: cargo --locked test -p bloop --release

- name: Sccache stats
run: nix develop -c bash -c 'sccache --show-stats'
run: sccache --show-stats
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down

0 comments on commit 81cef15

Please sign in to comment.