Skip to content

Commit

Permalink
feat: fixed dagger ci
Browse files Browse the repository at this point in the history
  • Loading branch information
roboteng committed Oct 13, 2023
1 parent a3c3528 commit 7537c86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ members = [
"game",
"server",
]
default-members = ["game"]
default-members = ["game", "ci"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ It will be capable of running single player games, and connecting to a server fo
### CI

I'm trying out [Dagger](https://dagger.io) for CI.
It seemed to work well before I added bevy as a dependency, but now its not building correctly.
That isn't Dagger's fault, I just haven't gone through and updated to work correctly with all the dependencies that a game engine expects.
It currently runs locally, but I haven't gotten to the point of running in GitHub Actions.
It doesn't do any deployment, just CI.
6 changes: 6 additions & 0 deletions ci/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ async fn main() -> eyre::Result<()> {
container
.with_mounted_cache(format!("{cargo_home}/registry"), cargo_registry)
.with_workdir(PROJECT)
.with_exec("apt-get update".split(' ').collect())
.with_exec(
"apt-get install -y --no-install-recommends libasound2-dev libudev-dev"
.split(' ')
.collect(),
)
.with_exec(vec!["cargo", "check"])
.with_exec(vec!["cargo", "test"])
.with_exec(vec!["rustup", "component", "add", "clippy"])
Expand Down

0 comments on commit 7537c86

Please sign in to comment.