Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies #116

Merged
merged 4 commits into from
Jun 19, 2024
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
59 changes: 26 additions & 33 deletions .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,29 @@ jobs:
yara:
needs: lint

strategy:
fail-fast: true
matrix:
runs-on:
- ubuntu-22.04

uses: ./.github/workflows/yara.yaml
with:
runs-on: ubuntu-22.04
runs-on: ${{ matrix.runs-on }}

yara-output:
needs: yara

runs-on: ubuntu-22.04
steps:
- name: Read Matrix Output
id: read
uses: cloudposse/github-action-matrix-outputs-read@main
with:
matrix-step-name: yara

outputs:
result: ${{ steps.read.outputs.result }}

clippy:
needs: yara
Expand Down Expand Up @@ -62,37 +82,10 @@ jobs:
env:
YARA_INCLUDE_DIR: ${{ github.workspace }}/.yara/${{ needs.yara.outputs.include-dir }}
YARA_LIBRARY_PATH: ${{ github.workspace }}/.yara/${{ needs.yara.outputs.library-path }}
run: cargo clippy -- -D clippy::all -D clippy::pedantic -D clippy::cargo -A clippy::cargo_common_metadata

yara-test:
needs: clippy

strategy:
fail-fast: true
matrix:
runs-on:
- ubuntu-22.04

uses: ./.github/workflows/yara.yaml
with:
runs-on: ${{ matrix.runs-on }}

yara-test-output:
needs: yara-test

runs-on: ubuntu-22.04
steps:
- name: Read Matrix Output
id: read
uses: cloudposse/github-action-matrix-outputs-read@main
with:
matrix-step-name: yara

outputs:
result: ${{ steps.read.outputs.result }}
run: cargo clippy -- -D clippy::all -D clippy::pedantic -D clippy::cargo -A clippy::cargo_common_metadata -A clippy::multiple_crate_versions

test:
needs: [yara-test, yara-test-output]
needs: [yara, yara-output]

strategy:
matrix:
Expand All @@ -108,7 +101,7 @@ jobs:
- name: Download YARA
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
with:
name: ${{ fromJson(needs.yara-test-output.outputs.result).artifacts[matrix.triple.runs-on] }}
name: ${{ fromJson(needs.yara-output.outputs.result).artifacts[matrix.triple.runs-on] }}
path: .yara

- name: Setup Rust
Expand All @@ -125,8 +118,8 @@ jobs:
- name: Run tests
env:
RUST_BACKTRACE: full
YARA_INCLUDE_DIR: ${{ github.workspace }}/.yara/${{ needs.yara-test.outputs.include-dir }}
YARA_LIBRARY_PATH: ${{ github.workspace }}/.yara/${{ needs.yara-test.outputs.library-path }}
YARA_INCLUDE_DIR: ${{ github.workspace }}/.yara/${{ needs.yara.outputs.include-dir }}
YARA_LIBRARY_PATH: ${{ github.workspace }}/.yara/${{ needs.yara.outputs.library-path }}
run: cargo test --no-fail-fast

docs-build:
Expand Down
Loading
Loading