mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-08 11:49:10 +00:00
chore: include manifest for action
This commit is contained in:
parent
c0140d6523
commit
6551f59a97
2 changed files with 18 additions and 2 deletions
16
package/action/action.yml
Normal file
16
package/action/action.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
name: "setup-lune"
|
||||
description: "Installs lune - the standalone luau runtime"
|
||||
branding:
|
||||
icon: "terminal"
|
||||
color: "purple"
|
||||
inputs:
|
||||
version:
|
||||
description: "Version of lune to install, defaults to latest"
|
||||
required: false
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- run: "wget https://github.com/CompeyDev/setup-lune/releases/download/latest/setup-lune-${{ runner.os }}-x86_64.zip"
|
||||
- run: "unzip setup-lune-${{ runner.os }}-x86_64.zip"
|
||||
- run: "chmod +X ./setup-lune && ./setup-lune"
|
||||
- run: "rm -rf ./setup-lune"
|
|
@ -124,7 +124,7 @@ pub fn download_release(version: Option<String>) -> Result<(PathBuf, LuneRelease
|
|||
Ok((PathBuf::from(&parsed_release_data.artifact_name), parsed_release_data))
|
||||
}
|
||||
|
||||
pub fn install_lune(lune_archive_reader: impl Read + Seek, meta: LuneReleaseFetched) -> Result<()> {
|
||||
pub fn install_lune(lune_archive_reader: impl Read + Seek, meta: LuneReleaseFetched) -> Result<PathBuf> {
|
||||
const TARGET: &str = "download::install_lune";
|
||||
|
||||
tracing::info!(target: TARGET, "Initializing routine");
|
||||
|
@ -171,5 +171,5 @@ pub fn install_lune(lune_archive_reader: impl Read + Seek, meta: LuneReleaseFetc
|
|||
lune_bin_path.to_string_lossy()
|
||||
);
|
||||
|
||||
Ok(())
|
||||
Ok(lune_bin_path)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue