Skip to content

Fix cross-platform CI.yml #1

Fix cross-platform CI.yml

Fix cross-platform CI.yml #1

Workflow file for this run

on:
pull_request:
paths:
- "crates/macro_tests/**"
push:
branches:
- main
paths:
- "crates/macro_tests/**"
name: Run macro tests
jobs:
tests:
name: Macro Tests
runs-on: ubuntu-latest
steps:
- name: Clear space
run: sudo rm -rf /usr/share/dotnet; sudo rm -rf /opt/ghc; sudo rm -rf "/usr/local/share/boost"; sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- uses: actions/checkout@v3
with:
sparse-checkout: 'crates/macro_tests'
sparse-checkout-cone-mode: false
- name: Move macro_tests to root
run: |
mv crates/macro_tests/* .
rm -rf crates
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/[email protected]
- uses: actions-rs/cargo@v1
with:
command: test
args: --profile=ephemeral-build