-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
2,676 additions
and
604 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
ci: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust Toolchain | ||
run: | | ||
rustup toolchain install stable --profile minimal | ||
rustup component add clippy | ||
- name: Setup Rust cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Build | ||
run: cargo build --verbose --locked | ||
|
||
- name: Test | ||
run: cargo test --verbose | ||
|
||
- name: Clippy | ||
run: cargo clippy -- -Dwarnings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: Draft | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build-unix: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
target: x86_64-unknown-linux-gnu | ||
- os: macos-latest | ||
target: x86_64-apple-darwin | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust Toolchain | ||
run: rustup toolchain install stable --profile minimal --target ${{ matrix.target }} | ||
|
||
- name: Build | ||
run: | | ||
cargo build --release --locked --target ${{ matrix.target }} | ||
- name: Pack artifact | ||
env: | ||
ARTIFACT_NAME: haze-${{ matrix.target }} | ||
run: | | ||
mkdir "$ARTIFACT_NAME" | ||
cp "target/${{ matrix.target }}/release/haze" "$ARTIFACT_NAME" | ||
cp README.md LICENSE "$ARTIFACT_NAME" | ||
if ! command -v zip &> /dev/null | ||
then | ||
sudo apt-get update && sudo apt-get install -yq zip | ||
fi | ||
zip -r "$ARTIFACT_NAME.zip" "$ARTIFACT_NAME" | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: haze-${{ matrix.target }}.zip | ||
path: haze-${{ matrix.target }}.zip | ||
|
||
build-windows: | ||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
target: x86_64-pc-windows-msvc | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust Toolchain | ||
run: rustup toolchain install stable --profile minimal | ||
|
||
- name: Add target | ||
run: rustup target add ${{ matrix.target }} | ||
|
||
- name: Build | ||
run: cargo build --release --locked --target ${{ matrix.target }} | ||
|
||
- name: Pack artifact | ||
env: | ||
TARGET_NAME: haze-${{ matrix.target }} | ||
run: | | ||
New-Item -ItemType Directory -Path ${env:TARGET_NAME} | ||
Copy-Item -Path "target\${{ matrix.target }}\release\haze.exe" -Destination ${env:TARGET_NAME} | ||
Copy-Item -Path "README.md", "LICENSE" -Destination ${env:TARGET_NAME} | ||
Compress-Archive -Path ${env:TARGET_NAME} -DestinationPath "${env:TARGET_NAME}.zip" | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: haze-${{ matrix.target }}.zip | ||
path: haze-${{ matrix.target }}.zip | ||
|
||
draft: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
needs: [build-unix, build-windows] | ||
steps: | ||
- name: Grab artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
merge-multiple: true | ||
|
||
- name: Draft | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
draft: true | ||
files: haze-*.zip |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/target | ||
/.direnv | ||
/result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Changelog | ||
|
||
## [2.0.0](https://github.com/salpland/haze/compare/v1.4.0...v2.0.0) | ||
|
||
### Changes | ||
|
||
- Allow importing and exporting multiple worlds at once | ||
- Fix target worlds not being cleaned up during exporting with the `--overwrite` | ||
flag ([#14](https://github.com/salpland/haze/issues/14)) | ||
- Add a pretty printer for `haze list` | ||
- Rename `--path` flag to `--minecraft-version` and restrict setting its value | ||
to `stable`, `preview`, or `education` | ||
- Allow setting `COM_MOJANG` environment variable to define an arbitrary | ||
`com.mojang` path | ||
- Merge `haze_core` and `haze` into a single crate | ||
- Add colored help message for `haze help` | ||
- Support using comments in `config.json` | ||
- Provide binaries for Linux and MacOS | ||
|
||
## [1.4.0](https://github.com/salpland/haze/compare/v1.3.0...v1.4.0) | ||
|
||
### Changes | ||
|
||
- Add the `--path` flag to allow using predefined export/import paths to | ||
`com.mojang` or custom ones | ||
([#12](https://github.com/salpland/haze/issues/12)) | ||
|
||
## [1.3.0](https://github.com/salpland/haze/compare/v1.2.0...v1.3.0) | ||
|
||
### Changes | ||
|
||
- Add `haze list` subcommand to list the available worlds in the project. By | ||
[@solvedDev](https://github.com/solvedDev) | ||
([#10](https://github.com/salpland/haze/issues/10)) | ||
- BREAKING: Rename `test` and `save` subcommands to `export` and `import` | ||
respectively. By [@solvedDev](https://github.com/solvedDev) | ||
([#8](https://github.com/salpland/haze/issues/8)) | ||
- Extract the core of Haze into a library. By | ||
[@solvedDev](https://github.com/solvedDev) | ||
([#9](https://github.com/salpland/haze/issues/9)) | ||
|
||
## [1.2.0](https://github.com/salpland/haze/compare/v1.1.0...v1.2.0) | ||
|
||
### Changes | ||
|
||
- BREAKING: Use `worlds` property in the configuration | ||
([#4](https://github.com/salpland/haze/issues/4)) | ||
- Improve error and logging messages | ||
- Use less bold text for errors | ||
- Update the descriptions for some commands | ||
- Remove diagnostic codes | ||
|
||
## [1.1.0](https://github.com/salpland/haze/compare/v1.0.1...v1.1.0) | ||
|
||
### Changes | ||
|
||
- Disable overwriting in `haze test` by default | ||
([#1](https://github.com/salpland/haze/issues/1)) | ||
- Add `--overwrite` flag to `haze test` to enable overwriting | ||
([#2](https://github.com/salpland/haze/issues/2)) | ||
- Improve error/info messages ([#3](https://github.com/salpland/haze/issues/2)) | ||
|
||
## [1.0.1](https://github.com/salpland/haze/compare/v1.0.0...v1.0.1) | ||
|
||
### Changes | ||
|
||
- Update the project's description for more clarity |
Oops, something went wrong.