forked from StudioInfinity/dyna3
Previously, dyna3 used storage keys to refer to elements, necessitating passing around element containers to various functions so that they could access the relevant elements. These storage keys have been replaced with reference-counted pointers, used for tasks like these: - Specifying the subjects of regulators. - Collecting the regulators each element is subject to - Handling selection. - Creating interface components. Also, systematizes the handling of serial numbers for entities, through a Serial trait. And updates to rust 1.86 and institutes explicit checking of the rust version. Co-authored-by: Aaron Fenyes <aaron.fenyes@fareycircles.ooo> Reviewed-on: StudioInfinity/dyna3#84 Co-authored-by: Vectornaut <vectornaut@nobody@nowhere.net> Co-committed-by: Vectornaut <vectornaut@nobody@nowhere.net>
29 lines
No EOL
1.2 KiB
YAML
29 lines
No EOL
1.2 KiB
YAML
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
jobs:
|
|
# run the automated tests, reporting success if the tests pass and were built
|
|
# without warnings. the examples are run as tests, because we've configured
|
|
# each example target with `test = true` and `harness = false` in Cargo.toml.
|
|
# Trunk build failures caused by problems outside the Rust source code, like
|
|
# missing assets, should be caught by `trunk_build_test`
|
|
test:
|
|
runs-on: docker
|
|
container:
|
|
image: cimg/rust:1.86-node
|
|
defaults:
|
|
run:
|
|
# set the default working directory for each `run` step, relative to the
|
|
# workspace directory. this default only affects `run` steps (and if we
|
|
# tried to set the `working-directory` label for any other kind of step,
|
|
# it wouldn't be recognized anyway)
|
|
working-directory: app-proto
|
|
steps:
|
|
# Check out the repository so that its top-level directory is the
|
|
# workspace directory (action variable `github.workspace`, environment
|
|
# variable `$GITHUB_WORKSPACE`):
|
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
|
|
|
- uses: ./.forgejo/setup-trunk
|
|
- run: RUSTFLAGS='-D warnings' cargo test |