Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
austintraver committed Jan 7, 2025
1 parent 470e32e commit b6f54be
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ jobs:
cache-all-crates: true
- name: Install Skyline
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
- name: Build release NRO
id: build_release
run: RUSTFLAGS=-g cargo-skyline skyline build --release
- name: Upload plugin artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: plugin
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
Expand All @@ -82,12 +82,12 @@ jobs:
cache-all-crates: true
- name: Install Skyline
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
- name: Build outside_training_mode NRO
run: RUSTFLAGS=-g cargo-skyline skyline build --release --features outside_training_mode
- name: Upload plugin (outside training mode) artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: plugin_outside_training_mode
path: target/aarch64-skyline-switch/release/libtraining_modpack.nro
Expand All @@ -99,18 +99,16 @@ jobs:
- plugin
steps:
- name: Download all artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
- name: Prepare zip
id: prepare_zip
env:
SMASH_PLUGIN_DIR: atmosphere/contents/01006A800016E000/romfs/skyline/plugins
run: |
mkdir -p ${{env.SMASH_PLUGIN_DIR}}
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
wget 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
curl --output-dir ${{env.SMASH_PLUGIN_DIR}} 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/nro-hook-plugin/releases/download/v0.4.0/libnro_hook.nro
zip -r training_modpack_beta.zip atmosphere
- name: Delete Release
uses: dev-drprasad/[email protected]
Expand Down Expand Up @@ -181,7 +179,7 @@ jobs:
files: >
training_modpack_beta.zip
- name: Upload zip as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: full_build
path: training_modpack_beta.zip
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ crate-type = ["cdylib"]

[dependencies]
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" }
bitflags = "1.2.1"
parking_lot = { version = "0.12.0", features = ["nightly"] }
Expand All @@ -28,7 +28,7 @@ wsl = "0.1.0"
strum = "0.21.0"
strum_macros = "0.21.0"
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_json = "1"
smush_info_shared = { git = "https://github.com/jam1garner/smush_info_shared.git" }
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#![feature(exclusive_range_pattern)]
#![feature(c_variadic)]
#![allow(stable_features)]
#![feature(stmt_expr_attributes)]
#![feature(pointer_byte_offsets)]
#![allow(
clippy::borrow_interior_mutable_const,
Expand Down
1 change: 1 addition & 0 deletions src/training/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ unsafe fn handle_layout_arc_malloc(ctx: &mut skyline::hooks::InlineCtx) {
let inject_arc_size: u64;

#[cfg(feature = "layout_arc_from_file")]
#[allow(static_mut_refs)]
{
let inject_arc_from_file = std::fs::read(LAYOUT_ARC_PATH).unwrap();
inject_arc_size = inject_arc_from_file.len() as u64;
Expand Down

0 comments on commit b6f54be

Please sign in to comment.