fix(ci): install cmake and libhwloc-dev #2
This file contains 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: ci | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
push: | |
pull_request: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build-app: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
override: true | |
profile: minimal | |
- name: Install trunk | |
uses: jetli/trunk-action@v0.1.0 | |
with: | |
version: "latest" | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Install node dependencies | |
run: npm clean-install | |
- name: Disable terminal hooks | |
run: sed -i '/\[\[hooks\]\]/,$d' 'Trunk.toml' | |
- name: Build | |
run: trunk build | |
build-server: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
profile: minimal | |
- name: Install dependencies | |
run: | | |
apt-get update && apt-get install -y \ | |
cmake \ | |
libhwloc-dev \ | |
&& apt-get clean all \ | |
&& rm -rf /var/lib/apt/lists/* | |
- name: Build | |
run: cargo build --package cassette-gateway --package cassette-operator --features 'full,experimental' --verbose | |
- name: Run tests | |
run: cargo test --package cassette-gateway --package cassette-operator --features 'full,experimental' --verbose |