chore(deps): bump clap from 4.5.11 to 4.5.19 #996
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors | |
# SPDX-License-Identifier: MIT | |
name: Rust CI | |
on: pull_request | |
permissions: | |
contents: read | |
concurrency: | |
group: rust-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
APP_NAME: notify_push | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: notify-push | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build .#check | |
clippy: | |
runs-on: ubuntu-latest | |
needs: check | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: notify-push | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build .#clippy | |
tests: | |
runs-on: ubuntu-latest | |
needs: check | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: notify-push | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build .#test | |
matrix: | |
runs-on: ubuntu-latest-low | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- id: set-matrix | |
run: echo "matrix={\"target\":$(nix eval --json ".#targets.x86_64-linux")}" | tee $GITHUB_OUTPUT | |
build: | |
runs-on: ubuntu-latest | |
needs: [check, matrix] | |
strategy: | |
fail-fast: false | |
matrix: ${{fromJson(needs.matrix.outputs.matrix)}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: notify-push | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build .#${{ matrix.target }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: notify_push-${{ matrix.target }} | |
path: result/bin/notify_push | |
test-client-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: notify-push | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build .#test_client-check | |
test-client-clippy: | |
runs-on: ubuntu-latest | |
needs: test-client-check | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: notify-push | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build .#test_client-clippy | |
test-client-matrix: | |
runs-on: ubuntu-latest-low | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- id: set-matrix | |
run: echo "matrix=$(nix eval --json ".#testClientMatrix.x86_64-linux")" | tee $GITHUB_OUTPUT | |
build-test-client: | |
name: Build test client | |
runs-on: ubuntu-latest | |
needs: [test-client-check, test-client-matrix] | |
strategy: | |
fail-fast: false | |
matrix: ${{fromJson(needs.test-client-matrix.outputs.matrix)}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: notify-push | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build .#test_client-${{ matrix.target }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: test_client-${{ matrix.target }}${{ matrix.extension }} | |
path: result/bin/test_client${{ matrix.extension }} | |
msrv: | |
name: Check MSRV | |
runs-on: ubuntu-latest | |
needs: check | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: notify-push | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- run: nix build .#checkMsrv | |
package: | |
name: Package nightly release | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: cachix/install-nix-action@v26 | |
- uses: cachix/cachix-action@v13 | |
with: | |
name: notify-push | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup krankerl | |
run: | | |
wget https://github.com/ChristophWurst/krankerl/releases/download/v0.14.0/krankerl_0.14.0_amd64.deb | |
sudo dpkg -i krankerl_0.14.0_amd64.deb | |
- name: Package app | |
run: krankerl package | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.APP_NAME }}.tar.gz | |
path: build/artifacts/${{ env.APP_NAME }}.tar.gz |