Skip to content

playground: prepare bridges to components #130

playground: prepare bridges to components

playground: prepare bridges to components #130

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
feature-matrix:
uses: ./.github/workflows/feature-matrix.yml
test:
name: test ${{ matrix.package.name }} (${{ matrix.package.features }})
runs-on: ubuntu-latest
needs: [feature-matrix]
strategy:
fail-fast: false
matrix:
package: ${{ fromJson(needs.feature-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Install accelsim dependencies
if: ${{ matrix.package.name == 'accelsim-sim' }}
run: >-
sudo apt-get install -y wget build-essential xutils-dev bison zlib1g-dev flex libglu1-mesa-dev libssl-dev libxml2-dev libboost-all-dev git g++
- name: Install CUDA
uses: Jimver/cuda-toolkit@v0.2.10
if: ${{ matrix.package.need_cuda }}
id: cuda-toolkit
with:
cuda: "11.8.0"
method: "network"
use-github-cache: true
# list of available packages here:
# https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/
sub-packages: '["nvcc", "runtime", "profiler-api"]'
- name: Lint
continue-on-error: true # for now we are not too pedantic
run: >-
cargo clippy --package "${{ matrix.package.name }}" --features "${{ matrix.package.features }}" --tests --benches --examples --all-targets -- -Dclippy::all -Dclippy::pedantic
- name: Test
run: >-
cargo test --package "${{ matrix.package.name }}" --features "${{ matrix.package.features }}" --all-targets
publish:
name: publish (dry-run)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Publish crates (dry-run)
uses: romnn/publish-crates@main
with:
dry-run: true
resolve-versions: true