ci: 💚 fix naming

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-07-08 15:33:23 +03:00
parent b0eb5dc4c8
commit 6d4e8062fb
2 changed files with 10 additions and 8 deletions

View file

@ -22,7 +22,7 @@ jobs:
- name: Upload Linux Binary - name: Upload Linux Binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: banker_algorithm_linux_x64_86 name: rust-remote-linux-x86_64
path: target/release/rust-remote path: target/release/rust-remote
build_windows: build_windows:
@ -39,7 +39,7 @@ jobs:
- name: Upload Windows Binary - name: Upload Windows Binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: banker_algorithm_windows_x64_86 name: rust-remote-windows-x86_64
path: target/release/rust-remote.exe path: target/release/rust-remote.exe
build_macos: build_macos:
@ -56,7 +56,7 @@ jobs:
- name: Upload MacOS Binary - name: Upload MacOS Binary
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: banker_algorithm_macos_x64_86 name: rust-remote-macos-arm64
path: target/release/rust-remote path: target/release/rust-remote
release: release:
@ -78,9 +78,9 @@ jobs:
- name: Rename Binaries - name: Rename Binaries
run: | run: |
mv Downloads/banker_algorithm_linux_x64_86/rust-remote Downloads/banker_algorithm_linux_x64_86/rust-remote-linux_x64_86 mv Downloads/rust-remote-linux-x86_64/rust-remote Downloads/rust-remote-linux-x86_64/rust-remote-linux-x86_64
mv Downloads/banker_algorithm_windows_x64_86/rust-remote.exe Downloads/banker_algorithm_windows_x64_86/rust-remote-windows_x64_86.exe mv Downloads/rust-remote-windows-x86_64/rust-remote.exe Downloads/rust-remote-windows-x86_64/rust-remote-windows-x86_64.exe
mv Downloads/banker_algorithm_macos_x64_86/rust-remote Downloads/banker_algorithm_macos_x64_86/rust-remote-macos_x64_86 mv Downloads/rust-remote-macos-arm64/rust-remote Downloads/rust-remote-macos-arm64/rust-remote-macos-arm64
- name: Git Commit SHA - name: Git Commit SHA
id: vars id: vars

View file

@ -13,8 +13,8 @@ pub fn take_args() -> Option<(RunnerMode, Config)> {
"--server" | "-sv" => runner = Runner::Server, "--server" | "-sv" => runner = Runner::Server,
"--client" | "-cl" => runner = Runner::Client, "--client" | "-cl" => runner = Runner::Client,
"--debug" | "-d" => debug = true, "--debug" | "-d" => debug = true,
"--ip" | "i" => ip = args[i + 1].clone(), "--ip" | "-i" => ip = args[i + 1].clone(),
"--port" | "p" => port = args[i + 1].clone(), "--port" | "-p" => port = args[i + 1].clone(),
"--help" | "-h" => { "--help" | "-h" => {
show_help(); show_help();
std::process::exit(0); std::process::exit(0);
@ -30,6 +30,8 @@ pub fn take_args() -> Option<(RunnerMode, Config)> {
} }
}; };
println!("{:#?}", ip);
let port = match port.parse::<u16>() { let port = match port.parse::<u16>() {
Ok(port) => port, Ok(port) => port,
Err(err_val) => { Err(err_val) => {