Compare commits
8 Commits
55ee91885d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
b2ed65519e
|
|||
|
dea30ceec9
|
|||
| 2c83072427 | |||
| 91aafa3853 | |||
| c5ccb494ba | |||
|
|
1d6ef9a63f | ||
|
|
8acbc84242 | ||
|
|
cde6bebb50 |
6
.github/workflows/build.yaml
vendored
6
.github/workflows/build.yaml
vendored
@@ -24,13 +24,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install build dependencies
|
||||
run: sudo apt install -y libluajit-5.1-dev mold
|
||||
|
||||
- name: Set up build cache
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
- run: cargo build --release ${{ matrix.feature.flags }}
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: errornowatcher_${{ matrix.feature.name }}_${{ matrix.os }}
|
||||
path: target/release/errornowatcher
|
||||
|
||||
6
.github/workflows/lint.yaml
vendored
6
.github/workflows/lint.yaml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install taplo
|
||||
uses: uncenter/setup-taplo@v1
|
||||
@@ -47,13 +47,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install build dependencies
|
||||
run: sudo apt install -y libluajit-5.1-dev mold
|
||||
|
||||
- name: Set up build cache
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/bin/
|
||||
|
||||
@@ -15,6 +15,14 @@ codegen-units = 1
|
||||
lto = true
|
||||
strip = true
|
||||
|
||||
[profile.release-no-lto]
|
||||
inherits = "release"
|
||||
lto = false
|
||||
|
||||
[profile.small]
|
||||
inherits = "release"
|
||||
opt-level = "z"
|
||||
|
||||
[build-dependencies]
|
||||
built = { version = "0", features = ["git2"] }
|
||||
|
||||
|
||||
@@ -92,7 +92,8 @@ pub async fn go_to(
|
||||
client
|
||||
.goto_with_opts(
|
||||
goal,
|
||||
PathfinderOpts::new().allow_mining(options.get("without_mining").unwrap_or_default()),
|
||||
PathfinderOpts::new()
|
||||
.allow_mining(!options.get::<bool>("without_mining").unwrap_or_default()),
|
||||
)
|
||||
.await;
|
||||
|
||||
@@ -116,7 +117,8 @@ pub async fn start_go_to(
|
||||
)?;
|
||||
client.start_goto_with_opts(
|
||||
goal,
|
||||
PathfinderOpts::new().allow_mining(options.get("without_mining").unwrap_or_default()),
|
||||
PathfinderOpts::new()
|
||||
.allow_mining(!options.get::<bool>("without_mining").unwrap_or_default()),
|
||||
);
|
||||
let _ = client.get_tick_broadcaster().recv().await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user