Skip to content

Commit

Permalink
chore: Use install-deps action
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Mar 8, 2024
1 parent 32ca419 commit 779353f
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 8 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/bench-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
required: false
default: 'LURK'
type: string
# List of prerequisite Ubuntu packages, separated by whitespace
packages:
required: false
type: string

jobs:
benchmark:
Expand All @@ -27,7 +31,10 @@ jobs:
with:
gpu-framework: 'cuda'
- uses: ./.github/actions/ci-env
# Install deps
- uses: ./.github/actions/install-deps
if: inputs.packages != ''
with:
packages: "${{ inputs.packages }}"
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/bench-pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ on:
default-env:
type: string
required: false
# List of prerequisite Ubuntu packages, separated by whitespace
packages:
required: false
type: string

jobs:
setup:
Expand Down Expand Up @@ -135,6 +139,10 @@ jobs:
with:
gpu-framework: 'cuda'
- uses: ./.github/actions/ci-env
- uses: ./.github/actions/install-deps
if: inputs.packages != ''
with:
packages: "${{ inputs.packages }}"
# Get base branch of the PR
- uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/check-lurk-compiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: false
default: 'ubuntu-latest'
type: string
# List of prerequisite Ubuntu packages, separated by whitespace
packages:
required: false
type: string

jobs:
check-lurk-compiles:
Expand All @@ -17,6 +21,10 @@ jobs:
with:
repository: lurk-lab/ci-workflows
- uses: ./.github/actions/ci-env
- uses: ./.github/actions/install-deps
if: inputs.packages != ''
with:
packages: "${{ inputs.packages }}"
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: false
default: 'ubuntu-latest'
type: string
# List of prerequisite Ubuntu packages, separated by whitespace
packages:
required: false
type: string

jobs:
codecov-grcov:
Expand All @@ -19,6 +23,10 @@ jobs:
with:
repository: lurk-lab/ci-workflows
- uses: ./.github/actions/ci-env
- uses: ./.github/actions/install-deps
if: inputs.packages != ''
with:
packages: "${{ inputs.packages }}"
- uses: actions/checkout@v4
with:
submodules: recursive
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/gpu-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ name: Comparative benchmarks on GPU

on:
workflow_call:
inputs:
# List of prerequisite Ubuntu packages, separated by whitespace
packages:
required: false
type: string

jobs:
# Run comparative benchmark against base branch, open issue on regression
Expand All @@ -22,6 +27,10 @@ jobs:
with:
gpu-framework: 'cuda'
- uses: ./.github/actions/ci-env
- uses: ./.github/actions/install-deps
if: inputs.packages != ''
with:
packages: "${{ inputs.packages }}"
- uses: actions/checkout@v4
# Install dependencies
- uses: dtolnay/rust-toolchain@stable
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/gpu-ci-cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
required: false
default: ""
type: string
# List of prerequisite Ubuntu packages, separated by whitespace
packages:
required: false
type: string

jobs:
cuda:
Expand All @@ -28,6 +32,10 @@ jobs:
with:
gpu-framework: 'cuda'
- uses: ./.github/actions/ci-env
- uses: ./.github/actions/install-deps
if: inputs.packages != ''
with:
packages: "${{ inputs.packages }}"
- uses: actions/checkout@v4
with:
submodules: recursive
Expand All @@ -36,4 +44,4 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: CUDA tests
run: |
cargo nextest run --profile ci --cargo-profile dev-ci --features "cuda,${{ inputs.features }}"
cargo nextest run --profile ci --cargo-profile dev-ci --features "cuda,${{ inputs.features }}"
10 changes: 9 additions & 1 deletion .github/workflows/gpu-ci-opencl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
required: false
default: ""
type: string
# List of prerequisite Ubuntu packages, separated by whitespace
packages:
required: false
type: string

jobs:
opencl:
Expand All @@ -28,6 +32,10 @@ jobs:
with:
gpu-framework: 'opencl'
- uses: ./.github/actions/ci-env
- uses: ./.github/actions/install-deps
if: inputs.packages != ''
with:
packages: "${{ inputs.packages }}"
- uses: actions/checkout@v4
with:
submodules: recursive
Expand All @@ -36,4 +44,4 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: OpenCL tests
run: |
cargo nextest run --profile ci --cargo-profile dev-ci --features "cuda,opencl,${{ inputs.features }}"
cargo nextest run --profile ci --cargo-profile dev-ci --features "cuda,opencl,${{ inputs.features }}"
17 changes: 12 additions & 5 deletions .github/workflows/unused-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ on:
# - cron: "0 0 * * *"
workflow_call:
inputs:
# comma-separated list of features to check
features:
required: false
default: ""
type: string
# comma-separated list of features to check
features:
required: false
default: ""
type: string
packages:
required: false
type: string

env:
CARGO_TERM_COLOR: always
Expand All @@ -26,6 +29,10 @@ jobs:
with:
repository: lurk-lab/ci-workflows
path: ci-workflows
- uses: ci-workflows/.github/actions/install-deps
if: inputs.packages != ''
with:
packages: "${{ inputs.packages }}"
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-udeps
# Normally running cargo-udeps requires use of a nightly compiler
Expand Down

0 comments on commit 779353f

Please sign in to comment.