mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-07-09 12:41:17 +00:00
Update workflow (#715)
This commit is contained in:
18
.github/workflows/rust.yml
vendored
18
.github/workflows/rust.yml
vendored
@ -56,13 +56,13 @@ jobs:
|
|||||||
cache-all-crates: true
|
cache-all-crates: true
|
||||||
- name: Install Skyline
|
- name: Install Skyline
|
||||||
run: |
|
run: |
|
||||||
cargo install --git https://github.com/Raytwo/cargo-skyline --branch std-change --force
|
cargo install --git https://github.com/jam1garner/cargo-skyline --branch master --force
|
||||||
cargo-skyline skyline update-std
|
cargo-skyline skyline update-std
|
||||||
- name: Build release NRO
|
- name: Build release NRO
|
||||||
id: build_release
|
id: build_release
|
||||||
run: RUSTFLAGS=-g cargo-skyline skyline build --release
|
run: RUSTFLAGS=-g cargo-skyline skyline build --release
|
||||||
- name: Upload plugin artifact
|
- name: Upload plugin artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: plugin
|
name: plugin
|
||||||
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
|
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
|
||||||
@ -82,12 +82,12 @@ jobs:
|
|||||||
cache-all-crates: true
|
cache-all-crates: true
|
||||||
- name: Install Skyline
|
- name: Install Skyline
|
||||||
run: |
|
run: |
|
||||||
cargo install --git https://github.com/Raytwo/cargo-skyline --branch std-change --force
|
cargo install --git https://github.com/jam1garner/cargo-skyline --branch master --force
|
||||||
cargo-skyline skyline update-std
|
cargo-skyline skyline update-std
|
||||||
- name: Build outside_training_mode NRO
|
- name: Build outside_training_mode NRO
|
||||||
run: RUSTFLAGS=-g cargo-skyline skyline build --release --features outside_training_mode
|
run: RUSTFLAGS=-g cargo-skyline skyline build --release --features outside_training_mode
|
||||||
- name: Upload plugin (outside training mode) artifact
|
- name: Upload plugin (outside training mode) artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: plugin_outside_training_mode
|
name: plugin_outside_training_mode
|
||||||
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
|
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
|
||||||
@ -99,7 +99,7 @@ jobs:
|
|||||||
- plugin
|
- plugin
|
||||||
steps:
|
steps:
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v4
|
||||||
- name: Prepare zip
|
- name: Prepare zip
|
||||||
id: prepare_zip
|
id: prepare_zip
|
||||||
env:
|
env:
|
||||||
@ -107,10 +107,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir -p ${{env.SMASH_PLUGIN_DIR}}
|
mkdir -p ${{env.SMASH_PLUGIN_DIR}}
|
||||||
cp plugin/libtraining_modpack.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack.nro
|
cp plugin/libtraining_modpack.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack.nro
|
||||||
wget https://github.com/ultimate-research/params-hook-plugin/releases/download/v13.0.3/libparam_hook.nro
|
curl --output-dir ${{env.SMASH_PLUGIN_DIR}} https://github.com/ultimate-research/params-hook-plugin/releases/download/v13.0.3/libparam_hook.nro
|
||||||
wget https://github.com/ultimate-research/nro-hook-plugin/releases/download/v0.4.0/libnro_hook.nro
|
curl --output-dir ${{env.SMASH_PLUGIN_DIR}} https://github.com/ultimate-research/nro-hook-plugin/releases/download/v0.4.0/libnro_hook.nro
|
||||||
cp libparam_hook.nro ${{env.SMASH_PLUGIN_DIR}}/libparam_hook.nro
|
|
||||||
cp libnro_hook.nro ${{env.SMASH_PLUGIN_DIR}}/libnro_hook.nro
|
|
||||||
zip -r training_modpack_beta.zip atmosphere
|
zip -r training_modpack_beta.zip atmosphere
|
||||||
- name: Delete Release
|
- name: Delete Release
|
||||||
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
uses: dev-drprasad/delete-tag-and-release@v0.2.1
|
||||||
@ -181,7 +179,7 @@ jobs:
|
|||||||
files: >
|
files: >
|
||||||
training_modpack_beta.zip
|
training_modpack_beta.zip
|
||||||
- name: Upload zip as artifact
|
- name: Upload zip as artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: full_build
|
name: full_build
|
||||||
path: training_modpack_beta.zip
|
path: training_modpack_beta.zip
|
||||||
|
@ -9,7 +9,7 @@ crate-type = ["cdylib"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
skyline = { git = "https://github.com/ultimate-research/skyline-rs.git" }
|
skyline = { git = "https://github.com/ultimate-research/skyline-rs.git" }
|
||||||
skyline_smash = { git = "https://github.com/asimon-1/skyline-smash.git", branch = "13.0.3" }
|
skyline_smash = { git = "https://github.com/austintraver/skyline-smash.git" }
|
||||||
skyline-web = { git = "https://github.com/skyline-rs/skyline-web.git" }
|
skyline-web = { git = "https://github.com/skyline-rs/skyline-web.git" }
|
||||||
bitflags = "1.2.1"
|
bitflags = "1.2.1"
|
||||||
parking_lot = { version = "0.12.0", features = ["nightly"] }
|
parking_lot = { version = "0.12.0", features = ["nightly"] }
|
||||||
@ -28,7 +28,7 @@ wsl = "0.1.0"
|
|||||||
strum = "0.21.0"
|
strum = "0.21.0"
|
||||||
strum_macros = "0.21.0"
|
strum_macros = "0.21.0"
|
||||||
minreq = { version = "2", features = ["https-native", "json-using-serde"] }
|
minreq = { version = "2", features = ["https-native", "json-using-serde"] }
|
||||||
sarc = { version = "1.2.0", features = [], default_features = false }
|
sarc = { version = "1.2.0", features = [], default-features = false }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
smush_info_shared = { git = "https://github.com/jam1garner/smush_info_shared.git" }
|
smush_info_shared = { git = "https://github.com/jam1garner/smush_info_shared.git" }
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#![feature(exclusive_range_pattern)]
|
#![feature(exclusive_range_pattern)]
|
||||||
#![feature(c_variadic)]
|
#![feature(c_variadic)]
|
||||||
#![allow(stable_features)]
|
#![allow(stable_features)]
|
||||||
|
#![feature(stmt_expr_attributes)]
|
||||||
#![feature(pointer_byte_offsets)]
|
#![feature(pointer_byte_offsets)]
|
||||||
#![allow(
|
#![allow(
|
||||||
clippy::borrow_interior_mutable_const,
|
clippy::borrow_interior_mutable_const,
|
||||||
|
@ -154,6 +154,7 @@ unsafe fn handle_layout_arc_malloc(ctx: &mut skyline::hooks::InlineCtx) {
|
|||||||
let inject_arc_size: u64;
|
let inject_arc_size: u64;
|
||||||
|
|
||||||
#[cfg(feature = "layout_arc_from_file")]
|
#[cfg(feature = "layout_arc_from_file")]
|
||||||
|
#[allow(static_mut_refs)]
|
||||||
{
|
{
|
||||||
let inject_arc_from_file = std::fs::read(LAYOUT_ARC_PATH).unwrap();
|
let inject_arc_from_file = std::fs::read(LAYOUT_ARC_PATH).unwrap();
|
||||||
inject_arc_size = inject_arc_from_file.len() as u64;
|
inject_arc_size = inject_arc_from_file.len() as u64;
|
||||||
|
Reference in New Issue
Block a user