Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Run examples in CI #26

Open
alice-i-cecile opened this issue Jan 25, 2022 · 2 comments
Open

Run examples in CI #26

alice-i-cecile opened this issue Jan 25, 2022 · 2 comments
Labels
C: ci Continuous integration D: moderate Some thought and experience needed I: moderate Solidly useful S: ready-for-design This issue needs design work laying out how it should be implemented T: enhancement A new feature

Comments

@alice-i-cecile
Copy link
Contributor

No description provided.

@alice-i-cecile alice-i-cecile added T: enhancement A new feature C: ci Continuous integration I: moderate Solidly useful D: moderate Some thought and experience needed S: ready-for-design This issue needs design work laying out how it should be implemented labels Jan 25, 2022
@alice-i-cecile
Copy link
Contributor Author

Initial attempts were not satisfactory. #29 is particularly challenging, but we also need an example-agnostic way to kill examples that are taking too long.

Draft workflow:

  run-examples:
    runs-on: ubuntu-latest
    steps:
      - name: Install Bevy dependencies
        run: |
          sudo apt-get update;
          DEBIAN_FRONTEND=noninteractive sudo apt-get install --no-install-recommends -yq \
            libasound2-dev libudev-dev;
      - uses: actions/checkout@v2
      - uses: actions/cache@v2
        with:
          path: |
            ~/.cargo/bin/
            ~/.cargo/registry/index/
            ~/.cargo/registry/cache/
            ~/.cargo/git/db/
            target/
          key: runner.os−cargo−run−examples−{{ hashFiles('**/Cargo.toml') }}
      - uses: actions-rs/toolchain@v1
        with:
          toolchain: nightly
      - name: Build project
        run: |
          cargo +nightly build
      - name: Run examples
        run: |
          for example_name in example/*.rs; do
            cargo +nightly run −−example $(basename $example_name .rs)"
            sleep 3
          done

@alice-i-cecile
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: ci Continuous integration D: moderate Some thought and experience needed I: moderate Solidly useful S: ready-for-design This issue needs design work laying out how it should be implemented T: enhancement A new feature
Projects
None yet
Development

No branches or pull requests

1 participant