Skip to content

Commit

Permalink
burn everything to the ground (#11)
Browse files Browse the repository at this point in the history
🔥🔥🔥🔥🔥
  • Loading branch information
Caznix authored Dec 20, 2024
1 parent 3aba3ae commit 470b934
Show file tree
Hide file tree
Showing 30 changed files with 525 additions and 1,085 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/code-quality.yml

This file was deleted.

39 changes: 24 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,35 @@ jobs:
# Credit to https://github.com/Far-Beyond-Dev/Horizon/blob/main/.github/workflows/main.yml
check-version:
runs-on: ubuntu-latest
outputs:
should_release: ${{ steps.check.outputs.should_release }}
version: ${{ steps.check.outputs.version }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Check if Cargo.toml version changed
id: check
- name: Get binary name
id: binary
run: |
BINARY_NAME=$(cargo metadata --format-version 1 | jq -r '.packages[0].targets[] | select(.kind[] | contains("bin")) | .name')
echo "name=$BINARY_NAME" >> "$GITHUB_OUTPUT"
- name: Check version change
id: version
run: |
CURRENT_VERSION=$(grep -m1 version Cargo.toml | cut -d '"' -f2)
git checkout HEAD^1
PREVIOUS_VERSION=$(grep -m1 version Cargo.toml | cut -d '"' -f2)
if [ "$CURRENT_VERSION" != "$PREVIOUS_VERSION" ]; then
echo "should_release=true" >> $GITHUB_OUTPUT
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
else
echo "should_release=false" >> $GITHUB_OUTPUT
git fetch
OLD_VERSION=$(git show HEAD^:Cargo.toml | grep -m 1 '^version = ' | cut -d '"' -f 2)
NEW_VERSION=$(grep -m 1 '^version = ' Cargo.toml | cut -d '"' -f 2)
if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
fi
- name: Create Release
if: steps.version.outputs.changed == 'true'
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.version.outputs.version }}
name: Release v${{ steps.version.outputs.version }}
files: target/release/${{ steps.binary.outputs.name }}
generate_release_notes: true
draft: false
prerelease: false
build:
strategy:
fail-fast: false
Expand Down Expand Up @@ -76,7 +85,7 @@ jobs:
- name: 🔧 Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: nightly
override: true
target: ${{ matrix.target }}
profile: minimal
Expand Down
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["engine", "subcrates/zephyr", "plugin_api"]
members = ["engine","subcrates/zen_core"]

[profile.dev]
rpath = false
Expand Down Expand Up @@ -32,4 +32,5 @@ incremental = true
codegen-units = 512

[workspace.dependencies]
zephyr = { path = "./subcrates/zephyr" }
lazy_static = "1.5.0"
parking_lot = "0.12.3"
1 change: 0 additions & 1 deletion engine/.gitignore

This file was deleted.

24 changes: 9 additions & 15 deletions engine/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
[package]
name = "zenyx"
name = "engine"
version = "0.1.0"
edition = "2021"
edition = "2024"

[dependencies]
anyhow = "1.0.93"
chrono = "0.4.38"
colored = "2.1.0"
lazy_static = "1.5.0"
anyhow = "1.0.94"
chrono = "0.4.39"
colored = "2.2.0"

lazy_static.workspace = true
log = "0.4.22"
once_cell = "1.20.2"
parking_lot = "0.12.3"
rand = "0.8.5"
parking_lot.workspace = true
regex = "1.11.1"
rustyline = { version = "15.0.0", features = ["derive", "rustyline-derive"] }
thiserror = "2.0.3"
tokio = { version = "1.41.1", features = ["macros", "rt", "rt-multi-thread"] }
wgpu = "23.0.1"
winit = "0.30.5"
zephyr.workspace = true
plugin_api = { path = "../plugin_api" }
horizon-plugin-api = "0.1.13"
tokio = { version = "1.42.0", features = ["macros", "parking_lot", "rt", "rt-multi-thread"] }
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ impl Log for DynamicLogger {
let mut writer = self.writer.lock();
writer.flush().unwrap();
}
}
}
14 changes: 2 additions & 12 deletions engine/src/core/mod.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
pub mod renderer;
pub mod repl;

use anyhow::Result;
use renderer::App;
use winit::event_loop::{ControlFlow, EventLoop};

pub fn init_renderer() -> Result<()> {
let event_loop = EventLoop::new()?;
event_loop.set_control_flow(ControlFlow::Poll);
let mut app = App::default();
Ok(event_loop.run_app(&mut app)?)
}
pub mod logger;
pub mod splash;
106 changes: 0 additions & 106 deletions engine/src/core/renderer/ctx.rs

This file was deleted.

61 changes: 0 additions & 61 deletions engine/src/core/renderer/mod.rs

This file was deleted.

Loading

0 comments on commit 470b934

Please sign in to comment.