feat: search for gadgets in multiple libraries #366
This file contains hidden or 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
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: ${{matrix.name || format('Rust {0}', matrix.rust)}} | |
| runs-on: ${{matrix.os}}-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| rust: [ nightly, beta, stable ] | |
| os: [ ubuntu ] | |
| env: | |
| RUSTFLAGS: --cfg deny_warnings -Dwarnings | |
| timeout-minutes: 45 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - uses: dtolnay/rust-toolchain@master | |
| id: toolchain | |
| with: | |
| toolchain: ${{matrix.rust}} | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry | |
| key: ${{ runner.os }}-cargo-registry-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-cargo-registry-${{ steps.toolchain.outputs.cachekey }}- | |
| ${{ runner.os }}-cargo-registry- | |
| - name: Cache target directory | |
| uses: actions/cache@v4 | |
| with: | |
| path: target | |
| key: ${{ runner.os }}-target-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-target-${{ steps.toolchain.outputs.cachekey }}- | |
| ${{ runner.os }}-target- | |
| - name: Build crackers | |
| run: cargo build --all-features --manifest-path crackers/Cargo.toml | |
| env: | |
| READ_ONLY_GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_TOKEN }} | |