Skip to content

Commit

Permalink
Merge pull request #1096 from onekey-sec/merge-native
Browse files Browse the repository at this point in the history
Merge unblob-native
  • Loading branch information
vlaci authored Feb 4, 2025
2 parents 748841b + f3c03d0 commit 3a7c6a1
Show file tree
Hide file tree
Showing 111 changed files with 2,295 additions and 395 deletions.
26 changes: 23 additions & 3 deletions .github/actions/setup-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,43 @@ inputs:
description: "Python version to setup"
required: false
default: "3.9"
install-test-deps:
description: "Wether to install 3rd Party dependencies (for tests)"
required: false
default: "true" # unfortunately boolean variables are not supported

name: "Setup dependencies"
description: "Install all required dependencies for worflows to run."
runs:
using: "composite"
steps:
- name: Install 3rd party dependencies
run: sudo unblob/install-deps.sh
- if: inputs.install-test-deps == 'true'
name: Install 3rd party dependencies
run: sudo ./install-deps.sh
shell: bash

- name: Setup sccache # for speeding up Rust builds
uses: mozilla-actions/[email protected]
with:
disable_annotations: true # it is very spammy, but useful for diagnostics

- name: Enable sccache
run: |
echo SCCACHE_GHA_ENABLED=true >> $GITHUB_ENV
echo RUSTC_WRAPPER=sccache >> $GITHUB_ENV
shell: bash

- name: Install uv & Python
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
python-version: ${{ matrix.python-version }}
python-version: ${{ inputs.python-version }}

- name: Install the project
run: uv sync
shell: bash

- name: Setup pip # some tools need it, and uv virtualenvs doesn't contain it
run: uv pip install pip
shell: bash
3 changes: 2 additions & 1 deletion .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ queries:
- uses: security-and-quality

paths:
- 'unblob'
- 'python'
- 'rust'
- 'tests'

paths-ignore:
Expand Down
Loading

0 comments on commit 3a7c6a1

Please sign in to comment.